Class: Integral::VersionPolicy
- Inherits:
-
BasePolicy
- Object
- BasePolicy
- Integral::VersionPolicy
- Defined in:
- app/policies/integral/version_policy.rb
Overview
Handles Activity authorization
Instance Attribute Summary
Attributes inherited from BasePolicy
Instance Method Summary collapse
-
#index? ⇒ Boolean
For some reason authorize_with_klass seems to be delegating manager? calls to BasePolicy rather than using the override app/controllers/integral/backend/activities_controller.rb:37:in ‘authorize_with_klass’.
- #manager? ⇒ Boolean (also: #grid?, #activity?, #activities?)
Methods inherited from BasePolicy
#initialize, #permitted_attribute?, #permitted_attributes, #unpermitted_attribute?
Constructor Details
This class inherits a constructor from Integral::BasePolicy
Instance Method Details
#index? ⇒ Boolean
For some reason authorize_with_klass seems to be delegating manager? calls to BasePolicy rather than using the override app/controllers/integral/backend/activities_controller.rb:37:in ‘authorize_with_klass’
7 8 9 |
# File 'app/policies/integral/version_policy.rb', line 7 def index? manager? end |
#manager? ⇒ Boolean Also known as: grid?, activity?, activities?
11 12 13 |
# File 'app/policies/integral/version_policy.rb', line 11 def manager? user.admin? end |