1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 # Be sure to restart your server when you modify this file.
7 # This file contains settings for ActionController::ParamsWrapper which
8 # is enabled by default.
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]
15 # Disable root element in JSON by default.
16 ActiveSupport.on_load(:active_record) do
17 self.include_root_in_json = false