Ah. I see. I actually thought this was a Hobo thing :). Yeah, you are right 
about that. Should use previous_changes instead, a very small change in my 
code but better to use the api methods. Thanks for the digging :)

~Ronny

On Friday, July 13, 2012 1:11:56 AM UTC+2, Matt jones wrote:
>
>
> 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 view this discussion on the web visit 
https://groups.google.com/d/msg/hobousers/-/Mnz29Q_2Os0J.
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