Module: Devise::Orm::DirtyTrackingOldMethods

Defined in:
lib/devise/orm.rb

Instance Method Summary collapse

Instance Method Details

#devise_email_before_last_saveObject



46
47
48
# File 'lib/devise/orm.rb', line 46

def devise_email_before_last_save
  email_was
end

#devise_email_in_databaseObject



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

Returns:

  • (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

Returns:

  • (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

Returns:

  • (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

Returns:

  • (Boolean)


62
63
64
# File 'lib/devise/orm.rb', line 62

def devise_will_save_change_to_email?
  email_changed?
end