Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix environment variable testing code in failsafe.rb.

Signed-off-by: Joshua Peek <josh@joshpeek.com>
  • Loading branch information...
commit 3cb97aeea8837b9d2b7ed3f9806f5727ceef0e3d 1 parent cd9bb88
@FooBarWidget FooBarWidget authored josh committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/action_dispatch/middleware/failsafe.rb
View
2  actionpack/lib/action_dispatch/middleware/failsafe.rb
@@ -11,7 +11,7 @@ def call(env)
@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)
Please sign in to comment.
Something went wrong with that request. Please try again.