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:
Stanko Krtalić
2026-08-11 14:33:05 +02:00
committed by GitHub
parent 656215b186
commit 1e9f681b3a
@@ -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