Fix 2.4.2 upgrade notes formatting refs #19330
[arvados.git] / services / api / config / initializers / wrap_parameters.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 # Be sure to restart your server when you modify this file.
6 #
7 # This file contains settings for ActionController::ParamsWrapper which
8 # is enabled by default.
9
10 # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
11 ActiveSupport.on_load(:action_controller) do
12   wrap_parameters format: [:json]
13 end
14
15 # Disable root element in JSON by default.
16 ActiveSupport.on_load(:active_record) do
17   self.include_root_in_json = false
18 end