diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-01-07 14:39:47 -0800 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2009-01-09 00:14:28 -0800 |
commit | d99b4ec57f07005211bad7c0b6605b03f811c865 (patch) | |
tree | 7a87ec3cbbfabf7068618a6f86707bc767702cc9 /actionpack/lib | |
parent | e3be52c1dd071b044de2c3cc3641f644888ded34 (diff) | |
download | rails-d99b4ec57f07005211bad7c0b6605b03f811c865.tar.gz rails-d99b4ec57f07005211bad7c0b6605b03f811c865.tar.bz2 rails-d99b4ec57f07005211bad7c0b6605b03f811c865.zip |
Take care not to mix in public methods
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/test_case.rb | 19 |
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 |