method

assert_index

assert_index(index, where)
private

No documentation available.

# File actionpack/lib/action_dispatch/middleware/stack.rb, line 105
    def assert_index(index, where)
      index = get_class index
      i = index.is_a?(Integer) ? index : middlewares.index { |m| m.klass == index }
      raise "No such middleware to insert #{where}: #{index.inspect}" unless i
      i
    end