fixes #2506: API results wrapped inside an extra object
This commit is contained in:
@@ -10,5 +10,5 @@ end
|
|||||||
|
|
||||||
# To enable root element in JSON for ActiveRecord objects.
|
# To enable root element in JSON for ActiveRecord objects.
|
||||||
ActiveSupport.on_load(:active_record) do
|
ActiveSupport.on_load(:active_record) do
|
||||||
self.include_root_in_json = true
|
self.include_root_in_json = false
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user