mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-08-12 10:00:42 +09:00
Scope boosts to the current message
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -27,7 +27,7 @@ class Messages::BoostsController < ApplicationController
|
||||
end
|
||||
|
||||
def set_boost
|
||||
@boost = Current.user.boosts.find(params[:id])
|
||||
@boost = @message.boosts.find_by!(id: params[:id], booster: Current.user)
|
||||
end
|
||||
|
||||
def boost_params
|
||||
|
||||
Reference in New Issue
Block a user