ActiveResource and json root element

903 Views Asked by At

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

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

Why this is not default since Rails 4.0.0 need root element for saving objects by default?

0

There are 0 best solutions below