diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-03-30 01:49:43 -0300 |
---|---|---|
committer | Rafael França <rafaelmfranca@gmail.com> | 2016-03-30 01:49:43 -0300 |
commit | afba03f79c9e3e88fbb9e38dbb905546f16f0d9e (patch) | |
tree | 5cc4d628e22eee1ff28a0130fad33e753df12460 /actionpack/lib | |
parent | 5ed38014811d4ce6d6f957510b9153938370173b (diff) | |
parent | 317fbb037f3e5705fdf8467ab7af2014bd143ba3 (diff) | |
download | rails-afba03f79c9e3e88fbb9e38dbb905546f16f0d9e.tar.gz rails-afba03f79c9e3e88fbb9e38dbb905546f16f0d9e.tar.bz2 rails-afba03f79c9e3e88fbb9e38dbb905546f16f0d9e.zip |
Merge pull request #24365 from prathamesh-sonpatki/fix-deprecation-warning
Fix deprecation warning for ParamsParser instance :smile:
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/params_parser.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/params_parser.rb b/actionpack/lib/action_dispatch/middleware/params_parser.rb index 683c5ffa3e..faf3262b8f 100644 --- a/actionpack/lib/action_dispatch/middleware/params_parser.rb +++ b/actionpack/lib/action_dispatch/middleware/params_parser.rb @@ -37,7 +37,7 @@ module ActionDispatch # The +parsers+ argument can take Hash of parsers where key is identifying # content mime type, and value is a lambda that is going to process data. def self.new(app, parsers = {}) - ActiveSupport::Deprecation.warn('ActionDispatch::ParamsParser is deprecated and you be removed in Rails 5.1. Configure the parameter parsing in ActionDispatch::Request.parameter_parsers.') + ActiveSupport::Deprecation.warn('ActionDispatch::ParamsParser is deprecated and will be removed in Rails 5.1. Configure the parameter parsing in ActionDispatch::Request.parameter_parsers.') parsers = parsers.transform_keys { |key| key.respond_to?(:symbol) ? key.symbol : key } ActionDispatch::Request.parameter_parsers = ActionDispatch::Request::DEFAULT_PARSERS.merge(parsers) app |