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:
parent
c6ef71ccf2
commit
bf5530df68
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue