# File lib/action_controller/failsafe.rb, line 25 def call(env) @app.call(env) rescue Exception => exception # Reraise exception in test environment if defined?(Rails) && Rails.env.test? raise exception else failsafe_response(exception) end end