Filter activeresource response body

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?


found a way :slight_smile:
had to overwrite instantiate_record method inside ActiveResource.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs