]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/wrap_parameters.rb
Update to rails 6.0.1
[rails.git] / config / initializers / wrap_parameters.rb
index 33725e95fd22b9053f75ef6626aa1af781ebe947..bbfc3961bffef15dabb35fe0de4c409d6efb58c5 100644 (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