ActiveResource and root json element

In ActiveResource 4.0.0, I need to have an explicit "include_root_in_json = true", like this:

class Base < ActiveResource::Base self.include_root_in_json = true end 

Why is this not the default, since Rails 4.0.0 needs a root element to save the default objects?

+4
source share

Source: https://habr.com/ru/post/1500766/


All Articles