Commit 6d3ad8fc authored by Igor Wiedler's avatar Igor Wiedler

Add warning for backported monkey-patch

parent ee46adaa
...@@ -3,7 +3,9 @@ ...@@ -3,7 +3,9 @@
# partial backport of https://github.com/rails/rails/pull/38169 # partial backport of https://github.com/rails/rails/pull/38169
# this is in order to be able to re-order rack middlewares. # this is in order to be able to re-order rack middlewares.
unless ActionDispatch::MiddlewareStack.method_defined?(:move) if ActionDispatch::MiddlewareStack.method_defined?(:move)
warn "`move` is now defined in in ActionDispatch itself: https://github.com/rails/rails/pull/38169, please remove this patch from #{__FILE__}"
else
module ActionDispatch module ActionDispatch
class MiddlewareStack class MiddlewareStack
def move(target, source) def move(target, source)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment