Module: DoubleAuthEngine::UserMixin::InstanceMethods
- Defined in:
- lib/double_auth_engine/models/user_mixin.rb
Instance Method Summary collapse
Instance Method Details
#deliver_password_reset_instructions! ⇒ Object
23 24 25 26 |
# File 'lib/double_auth_engine/models/user_mixin.rb', line 23 def deliver_password_reset_instructions! reset_perishable_token! Notifier.password_reset_instructions(self).deliver end |
#email=(value) ⇒ Object
19 20 21 |
# File 'lib/double_auth_engine/models/user_mixin.rb', line 19 def email=(value) write_attribute :email, (value ? value.downcase : nil) end |
#role_symbols ⇒ Object
28 29 30 31 32 |
# File 'lib/double_auth_engine/models/user_mixin.rb', line 28 def role_symbols roles.map do |role| role.name.underscore.to_sym end end |