diff options
author | Hongli Lai (Phusion) <hongli@phusion.nl> | 2009-04-26 11:23:10 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-04-26 11:23:10 -0500 |
commit | 3cb97aeea8837b9d2b7ed3f9806f5727ceef0e3d (patch) | |
tree | bd1e0b19e54751367dbbd60c8a7f8c932025f107 /actionpack | |
parent | cd9bb88eefdbd8a43f0bb15934ae32985fd19b6e (diff) | |
download | rails-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')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/failsafe.rb | 2 |
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) |