instance method
delete
Ruby on Rails 7.2.3
Since v3.1.12Signature
delete(target)
Deletes a middleware from the middleware stack.
Returns the array of middlewares not including the deleted item, or returns nil if the target is not found.
Parameters
-
targetreq
Source
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 131
def delete(target)
middlewares.reject! { |m| m.name == target.name }
end
Defined in actionpack/lib/action_dispatch/middleware/stack.rb line 131
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::MiddlewareStack