Permalink
Browse files

Take care not to mix in public methods

  • Loading branch information...
1 parent e3be52c commit d99b4ec57f07005211bad7c0b6605b03f811c865 @jeremy jeremy committed with wycats Jan 7, 2009
Showing with 10 additions and 9 deletions.
  1. +10 −9 actionpack/lib/action_controller/test_case.rb
@@ -127,17 +127,18 @@ def clean_backtrace(&block)
#
# The exception is stored in the exception accessor for further inspection.
module RaiseActionExceptions
- attr_accessor :exception
+ protected
+ attr_accessor :exception
- def rescue_action_without_handler(e)
- self.exception = e
-
- if request.remote_addr == "0.0.0.0"
- raise(e)
- else
- super(e)
+ def rescue_action_without_handler(e)
+ self.exception = e
+
+ if request.remote_addr == "0.0.0.0"
+ raise(e)
+ else
+ super(e)
+ end
end
- end
end
setup :setup_controller_request_and_response

0 comments on commit d99b4ec

Please sign in to comment.