Module: Devise::Orm::DirtyTrackingMethods
- 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
12 13 14 |
# File 'lib/devise/orm.rb', line 12 def devise_email_before_last_save email_before_last_save end |
#devise_email_in_database ⇒ Object
16 17 18 |
# File 'lib/devise/orm.rb', line 16 def devise_email_in_database email_in_database end |
#devise_respond_to_and_will_save_change_to_attribute?(attribute) ⇒ Boolean
32 33 34 |
# File 'lib/devise/orm.rb', line 32 def devise_respond_to_and_will_save_change_to_attribute?(attribute) respond_to?("will_save_change_to_#{attribute}?") && send("will_save_change_to_#{attribute}?") end |
#devise_saved_change_to_email? ⇒ Boolean
20 21 22 |
# File 'lib/devise/orm.rb', line 20 def devise_saved_change_to_email? saved_change_to_email? end |
#devise_saved_change_to_encrypted_password? ⇒ Boolean
24 25 26 |
# File 'lib/devise/orm.rb', line 24 def devise_saved_change_to_encrypted_password? saved_change_to_encrypted_password? end |
#devise_will_save_change_to_email? ⇒ Boolean
28 29 30 |
# File 'lib/devise/orm.rb', line 28 def devise_will_save_change_to_email? will_save_change_to_email? end |