diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2011-05-13 00:44:48 -0500 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2011-05-13 00:44:48 -0500 |
commit | e987bc5469f5dc7da1c20f5c6acb51cf4af3b11c (patch) | |
tree | d62cb2d7c09c4e573bd2eed5e44db7bd1c51d280 | |
parent | e2c4282fbf9716d175b71a3f57ffd06e87683f1b (diff) | |
download | rails-e987bc5469f5dc7da1c20f5c6acb51cf4af3b11c.tar.gz rails-e987bc5469f5dc7da1c20f5c6acb51cf4af3b11c.tar.bz2 rails-e987bc5469f5dc7da1c20f5c6acb51cf4af3b11c.zip |
Using new hash syntax in wrap_parameters initializer under Ruby 1.9
-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 32ffbee7a1..e56195da80 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 @@ # which will be enabled by default in the upcoming version of Ruby on Rails. # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. -ActionController::Base.wrap_parameters :format => [:json] +ActionController::Base.wrap_parameters <%= key_value :format, "[:json]" %> # Disable root element in JSON by default. if defined?(ActiveRecord) |