Module: Roles::Generic::User::SingleRole

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

Instance Method Summary collapse

Instance Method Details

#roleObject



24
25
26
# File 'lib/roles_generic/generic/user/configuration.rb', line 24

def role
  roles.first
end

#role=(new_role) ⇒ Object



28
29
30
# File 'lib/roles_generic/generic/user/configuration.rb', line 28

def role= new_role
  self.roles = new_role
end