aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-07-20 00:03:20 +0800
committerAaron Patterson <aaron.patterson@gmail.com>2010-07-20 04:32:08 +0800
commit17600eb435693f333af46912fd796fcdff5657b2 (patch)
treecfeeac87f6f3ff32c28a830028844ba166b0a9ac
parentd39c3b179c2c0d31099033b3de4a866e19ce144b (diff)
downloadrails-17600eb435693f333af46912fd796fcdff5657b2.tar.gz
rails-17600eb435693f333af46912fd796fcdff5657b2.tar.bz2
rails-17600eb435693f333af46912fd796fcdff5657b2.zip
Remove unused orig_handler and unneeded parentheses
-rw-r--r--actionpack/lib/action_controller/metal/rescue.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_controller/metal/rescue.rb b/actionpack/lib/action_controller/metal/rescue.rb
index cc2b020e03..eb037aa1b0 100644
--- a/actionpack/lib/action_controller/metal/rescue.rb
+++ b/actionpack/lib/action_controller/metal/rescue.rb
@@ -4,9 +4,9 @@ module ActionController #:nodoc:
include ActiveSupport::Rescuable
def rescue_with_handler(exception)
- if ((exception.respond_to?(:original_exception)) &&
- (orig_exception = exception.original_exception) &&
- (orig_handler = handler_for_rescue(orig_exception)))
+ if (exception.respond_to?(:original_exception) &&
+ (orig_exception = exception.original_exception) &&
+ handler_for_rescue(orig_exception))
exception = orig_exception
end
super(exception)