Class: Pageflow::ThemingPolicy
- Inherits:
-
ApplicationPolicy
- Object
- ApplicationPolicy
- Pageflow::ThemingPolicy
- Defined in:
- app/policies/pageflow/theming_policy.rb
Defined Under Namespace
Classes: Scope
Instance Method Summary collapse
- #edit? ⇒ Boolean
-
#initialize(user, theming) ⇒ ThemingPolicy
constructor
A new instance of ThemingPolicy.
Constructor Details
#initialize(user, theming) ⇒ ThemingPolicy
Returns a new instance of ThemingPolicy.
38 39 40 41 |
# File 'app/policies/pageflow/theming_policy.rb', line 38 def initialize(user, theming) @user = user @theming = theming end |
Instance Method Details
#edit? ⇒ Boolean
43 44 45 |
# File 'app/policies/pageflow/theming_policy.rb', line 43 def edit? allows?(%w(publisher manager)) end |