diff config/initializers/wrap_parameters.rb @ 18:aeb4d50ec21b

Hash rocket everywhere.
author edogawaconan <me@myconan.net>
date Fri, 05 Sep 2014 23:10:53 +0900
parents a1c9fadc0904
children
line wrap: on
line diff
--- a/config/initializers/wrap_parameters.rb	Fri Sep 05 20:40:50 2014 +0900
+++ b/config/initializers/wrap_parameters.rb	Fri Sep 05 23:10:53 2014 +0900
@@ -5,5 +5,5 @@
 
 # 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] if respond_to?(:wrap_parameters)
+  wrap_parameters :format => [:json] if respond_to?(:wrap_parameters)
 end