Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix wrap_parameters initializer template

  • Loading branch information...
commit 4b703765ec4c147fec6deaac4cd2a3ab74171c15 1 parent 72de6ab
@jonleighton jonleighton authored
2  railties/lib/rails/generators/rails/app/templates/config/initializers/
@@ -4,7 +4,7 @@
# is enabled by default.
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
-<%= app_const %>.config.wrap_parameters <%= key_value :format, "[:json]" %>
+<%= app_const %>.config.wrap_parameters = { <%= key_value :format, "[:json]" %> }
# Disable root element in JSON by default.
if defined?(ActiveRecord)
Please sign in to comment.
Something went wrong with that request. Please try again.