mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-26 16:58:26 -04:00
Reinstate json response config
This commit is contained in:
1 parent
48589150a7
commit
cf72bdc57d
1 file changed
+3
-3
@@ -9,6 +9,6 @@ ActiveSupport.on_load(:action_controller) do
|
||||
end
|
||||
|
||||
# To enable root element in JSON for ActiveRecord objects.
|
||||
# ActiveSupport.on_load(:active_record) do
|
||||
# self.include_root_in_json = true
|
||||
# end
|
||||
ActiveSupport.on_load(:active_record) do
|
||||
self.include_root_in_json = false
|
||||
end
|
||||
Reference in new issue
Block a user