method

move

Importance_0
v6.1.3.1 - Show latest stable - 0 notes - Class: ActionDispatch::MiddlewareStack
move(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 125
    def move(target, source)
      source_index = assert_index(source, :before)
      source_middleware = middlewares.delete_at(source_index)

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