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
- #manager? ⇒ Boolean (also: #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
#manager? ⇒ Boolean Also known as: activity?, activities?
4 5 6 |
# File 'app/policies/integral/version_policy.rb', line 4 def manager? user.admin? end |