Run rails upgrade task
next bundle exec rails app:update
This commit is contained in:
parent
a017848ace
commit
7c1d3ce1c4
28 changed files with 395 additions and 284 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue