1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix environment variable testing code in failsafe.rb.

Signed-off-by: Joshua Peek <josh@joshpeek.com>
This commit is contained in:
Hongli Lai (Phusion) 2009-04-26 11:23:10 -05:00 committed by Joshua Peek
parent cd9bb88eef
commit 3cb97aeea8

View file

@ -11,7 +11,7 @@ module ActionDispatch
@app.call(env) @app.call(env)
rescue Exception => exception rescue Exception => exception
# Reraise exception in test environment # Reraise exception in test environment
if defined?(Rails) && Rails.test? if defined?(Rails) && Rails.env.test?
raise exception raise exception
else else
failsafe_response(exception) failsafe_response(exception)