Method: ActionPolicy::Behaviours::PolicyFor#implicit_authorization_target
- Defined in:
- lib/action_policy/behaviours/policy_for.rb
#implicit_authorization_target ⇒ Object
Override this method to provide implicit authorization target that would be used in case record is not specified in authorize! and allowed_to? call.
It is also used to infer a policy for scoping (in authorized_scope method).
44 45 46 |
# File 'lib/action_policy/behaviours/policy_for.rb', line 44 def # no-op end |