Class: Pageflow::ThemingPolicy

Inherits:
ApplicationPolicy show all
Defined in:
app/policies/pageflow/theming_policy.rb

Defined Under Namespace

Classes: Scope

Instance Method Summary collapse

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

Returns:

  • (Boolean)


43
44
45
# File 'app/policies/pageflow/theming_policy.rb', line 43

def edit?
  allows?(%w(publisher manager))
end