Skip to content

Commit

Permalink
Remove unnecessary variable
Browse files Browse the repository at this point in the history
  • Loading branch information
saturnflyer committed Apr 11, 2024
1 parent 560c0c8 commit ac48eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pundit/plus.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def exception_from(query:)
"permitted_attributes"
end

required = params.require(
params.require(
PolicyFinder.new(record).param_key
).permit(
*send(param_method)
Expand Down

0 comments on commit ac48eb2

Please sign in to comment.