diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-08-16 02:28:13 +0100 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2011-08-16 02:28:13 +0100 |
commit | f76842f57e3f4e9292867a456abd90c034230916 (patch) | |
tree | a8af352e3738e43fffe8eb65261a5dfe45ed4437 | |
parent | bfb9e61a9f12024ebe999216d4d17fdb53765883 (diff) | |
download | rails-f76842f57e3f4e9292867a456abd90c034230916.tar.gz rails-f76842f57e3f4e9292867a456abd90c034230916.tar.bz2 rails-f76842f57e3f4e9292867a456abd90c034230916.zip |
Fix wrap_parameters initializer template
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/initializers/wrap_parameters.rb.tt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/initializers/wrap_parameters.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/initializers/wrap_parameters.rb.tt index 45c7e531ba..a52917351d 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/initializers/wrap_parameters.rb.tt +++ b/railties/lib/rails/generators/rails/app/templates/config/initializers/wrap_parameters.rb.tt @@ -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) |