Added rollback method to ActiveModel::Dirty - #14861
Conversation
|
Hey @igor04 What's the difference between this and reset_changes? Am I missing something? It looks to me like they both do the same things? ~Earl |
|
Hi @estsauver Not exactly, |
|
@igor04 So |
There was a problem hiding this comment.
This should call changed_attributes.each_key, changed gets overridden by ActiveRecord::AttributeMethods::Dirty to include in-place mutations.
Added rollback method to ActiveModel::Dirty
Maybe I have missed something but looks like rollback changes should be presented here