instance method
delete!
Ruby on Rails 8.0.4
Since v7.0.10Signature
delete!(target)
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.
Parameters
-
targetreq
Source
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 139
def delete!(target)
delete(target) || (raise "No such middleware to remove: #{target.inspect}")
end
Defined in actionpack/lib/action_dispatch/middleware/stack.rb line 139
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::MiddlewareStack