class method
self.use
Ruby on Rails 5.2.8.1
Since v3.0.20Signature
self.use(*args, &block)
Pushes the given Rack middleware and its arguments to the bottom of the middleware stack.
Parameters
-
argsrest -
blockblock
Source
# File actionpack/lib/action_controller/metal.rb, line 222
def self.use(*args, &block)
middleware_stack.use(*args, &block)
end
Defined in actionpack/lib/action_controller/metal.rb line 222
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Metal