Method: ActionDispatch::MiddlewareStack#delete!
- Defined in:
- actionpack/lib/action_dispatch/middleware/stack.rb
#delete!(target) ⇒ Object
Deletes a middleware from the middleware stack.
Returns the array of middlewares not including the deleted item, or raises RuntimeError if the target is not found.
139 140 141 |
# File 'actionpack/lib/action_dispatch/middleware/stack.rb', line 139 def delete!(target) delete(target) || (raise "No such middleware to remove: #{target.inspect}") end |