diff --git a/lib/pundit/plus.rb b/lib/pundit/plus.rb index b4701f6..ffa926d 100644 --- a/lib/pundit/plus.rb +++ b/lib/pundit/plus.rb @@ -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)