method

move_after

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: ActionDispatch::MiddlewareStack
move_after(target, source) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 152
    def move_after(target, source)
      source_index = assert_index(source, :after)
      source_middleware = middlewares.delete_at(source_index)

      target_index = assert_index(target, :after)
      middlewares.insert(target_index + 1, source_middleware)
    end
Register or log in to add new notes.