aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorPrathamesh Sonpatki <csonpatki@gmail.com>2016-03-30 10:16:07 +0530
committerPrathamesh Sonpatki <csonpatki@gmail.com>2016-03-30 10:16:07 +0530
commit317fbb037f3e5705fdf8467ab7af2014bd143ba3 (patch)
tree5cc4d628e22eee1ff28a0130fad33e753df12460 /actionpack
parent5ed38014811d4ce6d6f957510b9153938370173b (diff)
downloadrails-317fbb037f3e5705fdf8467ab7af2014bd143ba3.tar.gz
rails-317fbb037f3e5705fdf8467ab7af2014bd143ba3.tar.bz2
rails-317fbb037f3e5705fdf8467ab7af2014bd143ba3.zip
Fix deprecation warning for ParamsParser instance :smile:
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/middleware/params_parser.rb2
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