I have an ActivityObserver
, which is observing tasks
, and has an after_update
callback.
I want to test if a particular attribute has been modified in the update
.
Is there a Rails way to compare the attributes of the subject with what they were before the update, or to check if they have changed?