Remove attribute_will_change! method as it is unnecessary

This commit is contained in:
Cade Scroggins
2016-04-20 16:27:42 -05:00
parent 22468f3756
commit 26b17abb01

View File

@@ -41,7 +41,6 @@ module Devise
# For legacy reasons, we use `encrypted_password` to store
# the hashed password.
def password=(new_password)
attribute_will_change! 'password'
@password = new_password
self.encrypted_password = password_digest(@password) if @password.present?
end