Class: CanTango::Configuration::Engines::Permission

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Engine

#off?, #on?, #reset!, #set

Instance Attribute Details

#config_path(path = nil) ⇒ Object (readonly) Also known as: config_path=

Returns the value of attribute config_path.



20
21
22
# File 'lib/cantango/configuration/engines/permission.rb', line 20

def config_path
  @config_path
end

Instance Method Details

#store {|@store| ... } ⇒ Object

Yields:



9
10
11
12
13
14
# File 'lib/cantango/configuration/engines/permission.rb', line 9

def store &block
  @store ||= ns::Store.new
  @store.default_class = CanTango::PermissionEngine::YamlStore
  yield @store if block
  @store
end

#typesObject



16
17
18
# File 'lib/cantango/configuration/engines/permission.rb', line 16

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