CappuccinoResource
CappuccinoResource copied to clipboard
Support for json when ActiveRecord::Base.include_root_in_json is false
When ActiveRecord::Base.include_root_in_json is set to false, CappuccinoResource stops working.
The workaround is simple, all the "attributes = response[[self railsName]]" must be replace by "attributes = response".
Of course, a configuration option would be most welcome. I will see if I can create a patch.