Mercurial > rsstweet
comparison 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 |
comparison
equal
deleted
inserted
replaced
17:6718f51b34b5 | 18:aeb4d50ec21b |
---|---|
3 # This file contains settings for ActionController::ParamsWrapper which | 3 # This file contains settings for ActionController::ParamsWrapper which |
4 # is enabled by default. | 4 # is enabled by default. |
5 | 5 |
6 # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. | 6 # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. |
7 ActiveSupport.on_load(:action_controller) do | 7 ActiveSupport.on_load(:action_controller) do |
8 wrap_parameters format: [:json] if respond_to?(:wrap_parameters) | 8 wrap_parameters :format => [:json] if respond_to?(:wrap_parameters) |
9 end | 9 end |