From 34a37ea9e8265972a93f0c4f62e44308c27751dd Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Mon, 2 Feb 2009 22:39:02 -0800 Subject: Workaround jruby issue with protected module attr_accessor showing up as public in included class --- actionpack/lib/action_controller/test_case.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'actionpack') diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb index 0b0d0c799b..d2059d51f4 100644 --- a/actionpack/lib/action_controller/test_case.rb +++ b/actionpack/lib/action_controller/test_case.rb @@ -127,9 +127,14 @@ module ActionController # # The exception is stored in the exception accessor for further inspection. module RaiseActionExceptions - protected - attr_accessor :exception + def self.included(base) + base.class_eval do + attr_accessor :exception + protected :exception, :exception= + end + end + protected def rescue_action_without_handler(e) self.exception = e -- cgit v1.2.3