instance method
assert_index
Ruby on Rails 5.2.8.1
Since v3.0.20 PrivateSignature
assert_index(index, where)
No documentation comment.
Parameters
-
indexreq -
wherereq
Source
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 106
def assert_index(index, where)
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
Defined in actionpack/lib/action_dispatch/middleware/stack.rb line 106
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::MiddlewareStack