20978: Merge branch 'main' into 20978-instance-types
[arvados.git] / services / api / config / initializers / wrap_parameters.rb
index 6fb9786504ea5247982f342ac7dfc6d426486b46..bbfc3961bffef15dabb35fe0de4c409d6efb58c5 100644 (file)
@@ -1,9 +1,5 @@
-# Copyright (C) The Arvados Authors. All rights reserved.
-#
-# SPDX-License-Identifier: AGPL-3.0
-
 # Be sure to restart your server when you modify this file.
-#
+
 # This file contains settings for ActionController::ParamsWrapper which
 # is enabled by default.
 
@@ -12,7 +8,7 @@ ActiveSupport.on_load(:action_controller) do
   wrap_parameters format: [:json]
 end
 
-# Disable root element in JSON by default.
-ActiveSupport.on_load(:active_record) do
-  self.include_root_in_json = false
-end
+# To enable root element in JSON for ActiveRecord objects.
+ActiveSupport.on_load(:active_record) do
+#   self.include_root_in_json = true
+end