instance method
assert_index
Ruby on Rails 4.2.9
Since v3.0.20Signature
assert_index(index, where)
No documentation comment.
Parameters
-
indexreq -
wherereq
Source
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 123
def assert_index(index, where)
i = index.is_a?(Integer) ? index : middlewares.index(index)
raise "No such middleware to insert #{where}: #{index.inspect}" unless i
i
end
Defined in actionpack/lib/action_dispatch/middleware/stack.rb line 123
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::MiddlewareStack