1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Revert "There are some Rack middleware take keyword arguments for initializing"

This reverts commit c6ef71ccf2
because this causes "wrong number of arguments (given 2, expected 1) (ArgumentError)" on Ruby 2.5
This commit is contained in:
Akira Matsuda 2019-09-15 09:25:13 +09:00
parent c6ef71ccf2
commit bf5530df68

View file

@ -34,8 +34,7 @@ module ActionDispatch
end
def build(app)
options = args.extract_options!
klass.new(app, *args, **options, &block)
klass.new(app, *args, &block)
end
def build_instrumented(app)