Module: Authorization
- Extended by:
- ActiveSupport::Concern
- Included in:
- User
- Defined in:
- app/models/concerns/authorization.rb
Instance Method Summary collapse
Instance Method Details
#authorize(policy, method) ⇒ Object
6 7 8 |
# File 'app/models/concerns/authorization.rb', line 6 def (policy, method) Pundit.policy!(self, policy).send(method) end |