Skip to content

Commit 663e8e1

Browse files
committed
Revert "Don't extend the return value of DelegateClass"
This reverts commit 4f61d46.
1 parent 9e39c8a commit 663e8e1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

activesupport/lib/active_support/cache/mem_cache_store.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def self.supports_cache_versioning?
3636
prepend Strategy::LocalCache
3737

3838
module DupLocalCache
39-
DupLocalStore = DelegateClass(Strategy::LocalCache::LocalStore) do
39+
class DupLocalStore < DelegateClass(Strategy::LocalCache::LocalStore)
4040
def write_entry(_key, entry)
4141
if entry.is_a?(Entry)
4242
entry.dup_value!

activesupport/lib/active_support/syntax_error_proxy.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module ActiveSupport
77
# is to enhance the backtraces on SyntaxError exceptions to include the
88
# source location of the syntax error. That way we can display the error
99
# source on error pages in development.
10-
SyntaxErrorProxy = DelegateClass(SyntaxError) do # :nodoc:
10+
class SyntaxErrorProxy < DelegateClass(SyntaxError) # :nodoc:
1111
def backtrace
1212
parse_message_for_trace + super
1313
end
@@ -20,7 +20,7 @@ def label
2020
end
2121
end
2222

23-
BacktraceLocationProxy = DelegateClass(Thread::Backtrace::Location) do
23+
class BacktraceLocationProxy < DelegateClass(Thread::Backtrace::Location)
2424
def initialize(loc, ex)
2525
super(loc)
2626
@ex = ex

0 commit comments

Comments
 (0)