Skip to content

Commit 5ed3801

Browse files
committed
Deprecate ActionDispatch::ParamsParser instance.
Related with 38d2bf5. cc @tenderlove
1 parent 3be1a75 commit 5ed3801

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

actionpack/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
* `ActionDispatch::ParamsParser` is deprecated and was removed from the middleware
2+
stack. To configure the parameter parsers use `ActionDispatch::Request.parameter_parsers=`.
3+
4+
*tenderlove*
5+
16
* When a `respond_to` collector with a block doesn't have a response, then
27
a `:no_content` response should be rendered. This brings the default
38
rendering behavior introduced by https://github.com/rails/rails/issues/19036

actionpack/lib/action_dispatch/middleware/params_parser.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def original_exception
3737
# The +parsers+ argument can take Hash of parsers where key is identifying
3838
# content mime type, and value is a lambda that is going to process data.
3939
def self.new(app, parsers = {})
40+
ActiveSupport::Deprecation.warn('ActionDispatch::ParamsParser is deprecated and you be removed in Rails 5.1. Configure the parameter parsing in ActionDispatch::Request.parameter_parsers.')
4041
parsers = parsers.transform_keys { |key| key.respond_to?(:symbol) ? key.symbol : key }
4142
ActionDispatch::Request.parameter_parsers = ActionDispatch::Request::DEFAULT_PARSERS.merge(parsers)
4243
app

0 commit comments

Comments
 (0)