Module: ActionController::PermissionsPolicy::ClassMethods
- Defined in:
- lib/action_controller/metal/permissions_policy.rb
Instance Method Summary collapse
Instance Method Details
#permissions_policy(**options, &block) ⇒ Object
35 36 37 38 39 40 41 42 43 |
# File 'lib/action_controller/metal/permissions_policy.rb', line 35 def (**, &block) before_action() do if block_given? policy = request..clone yield policy request. = policy end end end |