Updated Rails version to 5.0.2

This commit is contained in:
Christoph Haas 2017-04-16 23:59:05 +02:00
parent 4bad4d3a36
commit 26a2f44ff1
13 changed files with 115 additions and 23 deletions

View file

@ -5,10 +5,10 @@
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
ActiveSupport.on_load(:action_controller) do
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
wrap_parameters format: [:json]
end
# To enable root element in JSON for ActiveRecord objects.
# ActiveSupport.on_load(:active_record) do
# self.include_root_in_json = true
# self.include_root_in_json = true
# end