module Pundit::Authorization
def pundit_params_for(record)
-
(ActionController::Parameters)
- the params
Parameters:
-
record
(Object
) -- the object we're retrieving params for
def pundit_params_for(record) params.require(PolicyFinder.new(record).param_key) end