Skip to content

Commit

Permalink
Fix method signature for `ActionController::MiddlewareStack#build_mid…
Browse files Browse the repository at this point in the history
…dleware`
  • Loading branch information
kamipo committed Dec 25, 2019
1 parent 2253cce commit 2e9d4f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_controller/metal.rb
Expand Up @@ -39,7 +39,7 @@ def build(action, app = nil, &block)
EXCLUDE = ->(list, action) { !list.include? action }
NULL = ->(list, action) { true }

def build_middleware(klass, args, block)
def build_middleware(klass, *args, &block)
options = args.extract_options!
only = Array(options.delete(:only)).map(&:to_s)
except = Array(options.delete(:except)).map(&:to_s)
Expand Down

0 comments on commit 2e9d4f5

Please sign in to comment.