mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Workaround jruby issue with protected module attr_accessor showing up as public in included class
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user