Module: Devise::Orm::DirtyTrackingOldMethods
- Defined in:
- lib/devise/orm.rb
Instance Method Summary collapse
- #devise_email_before_last_save ⇒ Object
- #devise_email_in_database ⇒ Object
- #devise_respond_to_and_will_save_change_to_attribute?(attribute) ⇒ Boolean
- #devise_saved_change_to_email? ⇒ Boolean
- #devise_saved_change_to_encrypted_password? ⇒ Boolean
- #devise_will_save_change_to_email? ⇒ Boolean
Instance Method Details
#devise_email_before_last_save ⇒ Object
46 47 48 |
# File 'lib/devise/orm.rb', line 46 def devise_email_before_last_save email_was end |
#devise_email_in_database ⇒ Object
50 51 52 |
# File 'lib/devise/orm.rb', line 50 def devise_email_in_database email_was end |
#devise_respond_to_and_will_save_change_to_attribute?(attribute) ⇒ Boolean
66 67 68 |
# File 'lib/devise/orm.rb', line 66 def devise_respond_to_and_will_save_change_to_attribute?(attribute) respond_to?("#{attribute}_changed?") && send("#{attribute}_changed?") end |
#devise_saved_change_to_email? ⇒ Boolean
54 55 56 |
# File 'lib/devise/orm.rb', line 54 def devise_saved_change_to_email? email_changed? end |
#devise_saved_change_to_encrypted_password? ⇒ Boolean
58 59 60 |
# File 'lib/devise/orm.rb', line 58 def devise_saved_change_to_encrypted_password? encrypted_password_changed? end |
#devise_will_save_change_to_email? ⇒ Boolean
62 63 64 |
# File 'lib/devise/orm.rb', line 62 def devise_will_save_change_to_email? email_changed? end |