I have a User model. I am trying to update a “confirm” attribute from Admin model. But while doing this, all the attributes are passed all over again; and due to the hashing used, the password which is passed again due to this, is getting changed.
I have implemented my model as in the tutorial by Michael Hart, and have used the same hashing technique.
I have a User model. I am trying to update a confirm attribute from
Share
Instead of using
update_attribute()useupdate_column(:name, value)method, becauseupdate_attributeinvokes the callback methods which are updating your password.