File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
activesupport/lib/active_support Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ def self.supports_cache_versioning?
36
36
prepend Strategy ::LocalCache
37
37
38
38
module DupLocalCache
39
- DupLocalStore = DelegateClass ( Strategy ::LocalCache ::LocalStore ) do
39
+ class DupLocalStore < DelegateClass ( Strategy ::LocalCache ::LocalStore )
40
40
def write_entry ( _key , entry )
41
41
if entry . is_a? ( Entry )
42
42
entry . dup_value!
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ module ActiveSupport
7
7
# is to enhance the backtraces on SyntaxError exceptions to include the
8
8
# source location of the syntax error. That way we can display the error
9
9
# source on error pages in development.
10
- SyntaxErrorProxy = DelegateClass ( SyntaxError ) do # :nodoc:
10
+ class SyntaxErrorProxy < DelegateClass ( SyntaxError ) # :nodoc:
11
11
def backtrace
12
12
parse_message_for_trace + super
13
13
end
@@ -20,7 +20,7 @@ def label
20
20
end
21
21
end
22
22
23
- BacktraceLocationProxy = DelegateClass ( Thread ::Backtrace ::Location ) do
23
+ class BacktraceLocationProxy < DelegateClass ( Thread ::Backtrace ::Location )
24
24
def initialize ( loc , ex )
25
25
super ( loc )
26
26
@ex = ex
You can’t perform that action at this time.
0 commit comments