Class: ActionSubscriber::Middleware::Runner

Inherits:
Middleware::Runner
  • Object
show all
Defined in:
lib/action_subscriber/middleware/runner.rb

Instance Method Summary collapse

Constructor Details

#initialize(stack) ⇒ Runner

Override the default middleware runner so we can ensure that the router is the last thing called in the stack.



9
10
11
12
13
# File 'lib/action_subscriber/middleware/runner.rb', line 9

def initialize(stack)
  stack << ::ActionSubscriber::Middleware::Router

  super(stack)
end