found a way :)
had to overwrite instantiate_record method inside ActiveResource.
On Sun, Sep 27, 2009 at 11:57 PM, slava
<mikerin.slava-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> Hello,
> I have an ActiveResource model that loads imperfectly structured json
> from a third party service. I need to catch response before its parsed
> by the model and make a few corrections on the json.
> How should I go about doing this?
>
> thanks,
> Slava
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---