I want to check if the attributes of the ActiveRecord object have been changed. I am currently doing this:
prev_attr = obj.attributes <- this will return a hash with the name attr and the value attr
And then, later, I'll take the attributes again and compare the 2 hashes. Is there another way?
source
share