Skip to content
Browse files

Take care not to mix in public methods

  • Loading branch information...
1 parent c90572e commit 347db97eddfc4c303a005b71fce9faf12e74e63a @jeremy jeremy committed
Showing with 10 additions and 9 deletions.
  1. +10 −9 actionpack/lib/action_controller/test_case.rb
View
19 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 347db97

Please sign in to comment.
Something went wrong with that request. Please try again.