mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #542 from guilleiguaran/1_9_hash_style
Use new hash syntax in wrap_parameters initializer under Ruby 1.9
This commit is contained in:
commit
a4a338167e
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue