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

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to