Update config defaults for new rails version

This commit is contained in:
Thibault Jouan
2011-12-04 23:03:31 +00:00
parent 9fc52eb4f5
commit fae41abf5d
4 changed files with 3 additions and 6 deletions

View File

@@ -5,7 +5,7 @@
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
ActiveSupport.on_load(:action_controller) do
wrap_parameters :format => [:json]
wrap_parameters format: [:json]
end
# Disable root element in JSON by default.