Rails 5.0

This commit is contained in:
Patrick Gansterer 2020-09-04 12:57:19 +02:00
parent 2892d5272d
commit 2557645f4f
25 changed files with 367 additions and 186 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