Module: Roles::Generic::User::DefaultRoleKeys

Defined in:
lib/roles_generic/generic/user/configuration.rb

Instance Method Summary collapse

Instance Method Details

#admin_role_keyObject



38
39
40
# File 'lib/roles_generic/generic/user/configuration.rb', line 38

def admin_role_key
  valid_roles.first || :admin      
end

#default_role_keyObject



34
35
36
# File 'lib/roles_generic/generic/user/configuration.rb', line 34

def default_role_key
  valid_roles.last || :user
end