mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-09 14:58:05 -05:00
Remove deprecation on _changed? methods
This commit is contained in:
@@ -8,7 +8,11 @@ module SharedAdmin
|
||||
allow_unconfirmed_access_for: 2.weeks, reconfirmable: true
|
||||
|
||||
validates_length_of :reset_password_token, minimum: 3, allow_blank: true
|
||||
validates_uniqueness_of :email, allow_blank: true, if: :email_changed?
|
||||
if Devise.rails51?
|
||||
validates_uniqueness_of :email, allow_blank: true, if: :will_save_change_to_email?
|
||||
else
|
||||
validates_uniqueness_of :email, allow_blank: true, if: :email_changed?
|
||||
end
|
||||
end
|
||||
|
||||
def raw_confirmation_token
|
||||
|
||||
Reference in New Issue
Block a user