1
0
Fork 0
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:
José Valim 2011-05-13 15:01:07 -07:00
commit a4a338167e

View file

@ -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)