aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-01-07 14:39:47 -0800
committerJeremy Kemper <jeremy@bitsweat.net>2009-01-07 14:49:12 -0800
commit347db97eddfc4c303a005b71fce9faf12e74e63a (patch)
treefd4f5ac7237ed894b4edc5533fed0bf5b9439ebe /actionpack/lib
parentc90572e3ab65e02933d204747645d0de83b00481 (diff)
downloadrails-347db97eddfc4c303a005b71fce9faf12e74e63a.tar.gz
rails-347db97eddfc4c303a005b71fce9faf12e74e63a.tar.bz2
rails-347db97eddfc4c303a005b71fce9faf12e74e63a.zip
Take care not to mix in public methods
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_controller/test_case.rb19
1 files changed, 10 insertions, 9 deletions
diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb
index 93a0be4127..0b0d0c799b 100644
--- a/actionpack/lib/action_controller/test_case.rb
+++ b/actionpack/lib/action_controller/test_case.rb
@@ -127,17 +127,18 @@ module ActionController
#
# 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