app: update code to Rails 6.1

This commit is contained in:
Pierre de La Morinerie 2021-02-16 15:14:43 +00:00
parent de9fab701a
commit 5990439ab7
25 changed files with 310 additions and 87 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