Module: Kingsman::Orm::DirtyTrackingMethods
- Defined in:
- lib/kingsman/orm.rb
Instance Method Summary collapse
- #kingsman_email_before_last_save ⇒ Object
- #kingsman_email_in_database ⇒ Object
- #kingsman_respond_to_and_will_save_change_to_attribute?(attribute) ⇒ Boolean
- #kingsman_saved_change_to_email? ⇒ Boolean
- #kingsman_saved_change_to_encrypted_password? ⇒ Boolean
- #kingsman_will_save_change_to_email? ⇒ Boolean
Instance Method Details
#kingsman_email_before_last_save ⇒ Object
12 13 14 |
# File 'lib/kingsman/orm.rb', line 12 def kingsman_email_before_last_save email_before_last_save end |
#kingsman_email_in_database ⇒ Object
16 17 18 |
# File 'lib/kingsman/orm.rb', line 16 def kingsman_email_in_database email_in_database end |
#kingsman_respond_to_and_will_save_change_to_attribute?(attribute) ⇒ Boolean
32 33 34 |
# File 'lib/kingsman/orm.rb', line 32 def kingsman_respond_to_and_will_save_change_to_attribute?(attribute) respond_to?("will_save_change_to_#{attribute}?") && send("will_save_change_to_#{attribute}?") end |
#kingsman_saved_change_to_email? ⇒ Boolean
20 21 22 |
# File 'lib/kingsman/orm.rb', line 20 def kingsman_saved_change_to_email? saved_change_to_email? end |
#kingsman_saved_change_to_encrypted_password? ⇒ Boolean
24 25 26 |
# File 'lib/kingsman/orm.rb', line 24 def kingsman_saved_change_to_encrypted_password? saved_change_to_encrypted_password? end |
#kingsman_will_save_change_to_email? ⇒ Boolean
28 29 30 |
# File 'lib/kingsman/orm.rb', line 28 def kingsman_will_save_change_to_email? will_save_change_to_email? end |