Module: CanTango::PermissionEngine::Selector

Defined in:
lib/cantango/permission_engine/selector.rb,
lib/cantango/permission_engine/selector/base.rb,
lib/cantango/permission_engine/selector/roles.rb,
lib/cantango/permission_engine/selector/users.rb,
lib/cantango/permission_engine/selector/licenses.rb,
lib/cantango/permission_engine/selector/user_types.rb,
lib/cantango/permission_engine/selector/role_groups.rb,
lib/cantango/permission_engine/selector/account_types.rb

Defined Under Namespace

Classes: AccountTypes, Base, Licenses, RoleGroups, Roles, UserTypes, Users

Class Method Summary collapse

Class Method Details

.create(type, collector) ⇒ Object



6
7
8
# File 'lib/cantango/permission_engine/selector.rb', line 6

def self.create type, collector
  selector_class(type).new collector
end

.selector_class(type) ⇒ Object



10
11
12
# File 'lib/cantango/permission_engine/selector.rb', line 10

def self.selector_class type
  "CanTango::PermissionEngine::Selector::#{type.to_s.camelize}".constantize
end