Module: Roles::Base

Defined in:
lib/roles_mongoid/embedded_role.rb,
lib/roles_mongoid/base_role.rb,
lib/roles_mongoid/base.rb

Instance Method Summary collapse

Instance Method Details

#valid_roles_are(*role_list) ⇒ Object



2
3
4
# File 'lib/roles_mongoid/embedded_role.rb', line 2

def valid_roles_are(*role_list)
  strategy_class.valid_roles = role_list.to_symbols
end