Workaround jruby issue with protected module attr_accessor showing up as public in included class

This commit is contained in:
Jeremy Kemper
2009-02-02 22:39:02 -08:00
parent 2259ecf368
commit 34a37ea9e8

View File

@@ -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