aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/middleware
diff options
context:
space:
mode:
authorHongli Lai (Phusion) <hongli@phusion.nl>2009-04-26 11:23:10 -0500
committerJoshua Peek <josh@joshpeek.com>2009-04-26 11:23:10 -0500
commit3cb97aeea8837b9d2b7ed3f9806f5727ceef0e3d (patch)
treebd1e0b19e54751367dbbd60c8a7f8c932025f107 /actionpack/lib/action_dispatch/middleware
parentcd9bb88eefdbd8a43f0bb15934ae32985fd19b6e (diff)
downloadrails-3cb97aeea8837b9d2b7ed3f9806f5727ceef0e3d.tar.gz
rails-3cb97aeea8837b9d2b7ed3f9806f5727ceef0e3d.tar.bz2
rails-3cb97aeea8837b9d2b7ed3f9806f5727ceef0e3d.zip
Fix environment variable testing code in failsafe.rb.
Signed-off-by: Joshua Peek <josh@joshpeek.com>
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware')
-rw-r--r--actionpack/lib/action_dispatch/middleware/failsafe.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/failsafe.rb b/actionpack/lib/action_dispatch/middleware/failsafe.rb
index b5a3abcc92..5e0c479fdd 100644
--- a/actionpack/lib/action_dispatch/middleware/failsafe.rb
+++ b/actionpack/lib/action_dispatch/middleware/failsafe.rb
@@ -11,7 +11,7 @@ module ActionDispatch
@app.call(env)
rescue Exception => exception
# Reraise exception in test environment
- if defined?(Rails) && Rails.test?
+ if defined?(Rails) && Rails.env.test?
raise exception
else
failsafe_response(exception)