Module: Cul::Omniauth::Users

Extended by:
ActiveSupport::Concern
Defined in:
app/models/concerns/cul/omniauth/users.rb

Defined Under Namespace

Modules: ClassMethods, ConfiguredRoles

Instance Method Summary collapse

Instance Method Details

#abilityObject



27
28
29
# File 'app/models/concerns/cul/omniauth/users.rb', line 27

def ability
  @ability ||= Ability.new(self)
end

#full_nameObject



19
20
21
# File 'app/models/concerns/cul/omniauth/users.rb', line 19

def full_name
  return self.first_name + ' ' + self.last_name
end

#role?(role_sym) ⇒ Boolean

Returns:

  • (Boolean)


23
24
25
# File 'app/models/concerns/cul/omniauth/users.rb', line 23

def role? role_sym
  role_sym == :*
end