app:update and modifying configurations

This commit is contained in:
shlok007 2016-08-10 17:20:10 -04:00
parent 81ef17f346
commit 519a3616ac
25 changed files with 364 additions and 167 deletions

View file

@ -1,5 +1,5 @@
# Be sure to restart your server when you modify this file.
#
# This file contains settings for ActionController::ParamsWrapper which
# is enabled by default.
@ -8,7 +8,7 @@ ActiveSupport.on_load(:action_controller) do
wrap_parameters format: [:json]
end
# Disable root element in JSON by default.
ActiveSupport.on_load(:active_record) do
self.include_root_in_json = false
end
# To enable root element in JSON for ActiveRecord objects.
# ActiveSupport.on_load(:active_record) do
# self.include_root_in_json = true
# end