CappuccinoResource icon indicating copy to clipboard operation
CappuccinoResource copied to clipboard

Support for json when ActiveRecord::Base.include_root_in_json is false

Open kuon opened this issue 14 years ago • 0 comments

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.

kuon avatar May 26 '11 11:05 kuon