Browse files

Using new hash syntax in wrap_parameters initializer under Ruby 1.9

  • Loading branch information...
1 parent e2c4282 commit e987bc5469f5dc7da1c20f5c6acb51cf4af3b11c @guilleiguaran guilleiguaran 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 e987bc5

Please sign in to comment.