Browse files

Merge pull request #542 from guilleiguaran/1_9_hash_style

Use new hash syntax in wrap_parameters initializer under Ruby 1.9
  • Loading branch information...
2 parents 308ea60 + e987bc5 commit a4a338167e752a4d92c64c7133ff4c975155ab7b @josevalim josevalim committed May 13, 2011
@@ -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)

0 comments on commit a4a3381

Please sign in to comment.