Class: CanTango::Configuration::Engines::Permit

Inherits:
Engine
  • Object
show all
Defined in:
lib/cantango/configuration/engines/permit.rb

Instance Method Summary collapse

Methods inherited from Engine

#off?, #reset!, #set

Methods included from Modes

#mode=, #modes

Instance Method Details

#on?Boolean

Returns:

  • (Boolean)


5
6
7
8
# File 'lib/cantango/configuration/engines/permit.rb', line 5

def on?
  @state ||= :on
  @state == :on
end

#special_permitsObject



14
15
16
# File 'lib/cantango/configuration/engines/permit.rb', line 14

def special_permits
  [:any, :system]
end

#typesObject



10
11
12
# File 'lib/cantango/configuration/engines/permit.rb', line 10

def types
  [:roles, :role_groups, :licenses, :users]
end