class method
self.new
Ruby on Rails 3.0.20
Since v3.0.20 Last seen in v3.2.22.5Signature
self.new(app, rescuers = {}, &block)
No documentation comment.
Parameters
-
appreq -
rescuersopt = {} -
blockblock
Source
# File actionpack/lib/action_dispatch/middleware/rescue.rb, line 3
def initialize(app, rescuers = {}, &block)
@app, @rescuers = app, {}
rescuers.each { |exception, rescuer| rescue_from(exception, rescuer) }
instance_eval(&block) if block_given?
end
Defined in actionpack/lib/action_dispatch/middleware/rescue.rb line 3
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Rescue