Module: VelirIdentityEngine::User
- Extended by:
- ActiveSupport::Concern
- Included in:
- User
- Defined in:
- lib/velir_identity_engine/user.rb
Defined Under Namespace
Modules: ClassMethods, Validations
Instance Method Summary
collapse
Instance Method Details
#approve! ⇒ Object
60
61
62
63
64
65
|
# File 'lib/velir_identity_engine/user.rb', line 60
def approve!
return false if self.approved?
self.approved = true
self.save!
end
|
#name ⇒ Object
67
68
69
|
# File 'lib/velir_identity_engine/user.rb', line 67
def name
"#{self.first_name} #{self.last_name}"
end
|
#unapprove! ⇒ Object
71
72
73
74
75
76
|
# File 'lib/velir_identity_engine/user.rb', line 71
def unapprove!
return false unless self.approved?
self.approved = false
self.save!
end
|