On Jul 12, 2012, at 6:52 PM, Ronny Hanssen wrote:
> Forget it. I just found that self in the do block contains @previously_changed, which holds anything I need. Hobo is (as usual) way ahead of me :)
>
> Regards,
> Ronny
Did some quick digging (as I'd never heard of that) and it's actually not a Hobo thing - it's part of ActiveModel! It's probably better to call previous_changes instead, since accessing mysterious instance variables is tricky, but that accomplishes the same thing:
https://github.com/rails/rails/blob/master/activemodel/lib/active_model/dirty.rb#L127
--Matt Jones