# File lib/action_controller/failsafe.rb, line 10 def call(env) @app.call(env) rescue Exception => exception # Reraise exception in test environment if env["rack.test"] raise exception else failsafe_response(exception) end end