mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-10-26 07:36:53 +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:
1 parent
656215b186
commit
1e9f681b3a
1 file changed
+1
-1
@@ -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