Skip to content

Commit 0e9efae

Browse files
committed
Nicer name for anonymous local cache middleware class
1 parent 4442312 commit 0e9efae

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

activesupport/lib/active_support/cache/strategy/local_cache.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ def call(env)
2727
Thread.current[:#{thread_local_key}] = nil
2828
end
2929
EOS
30+
31+
def klass.to_s
32+
"ActiveSupport::Cache::Strategy::LocalCache"
33+
end
34+
3035
klass
3136
end
3237
end

0 commit comments

Comments
 (0)