Nicer name for anonymous local cache middleware class
This commit is contained in:
parent
44423126c6
commit
0e9efae474
|
@ -27,6 +27,11 @@ module ActiveSupport
|
|||
Thread.current[:#{thread_local_key}] = nil
|
||||
end
|
||||
EOS
|
||||
|
||||
def klass.to_s
|
||||
"ActiveSupport::Cache::Strategy::LocalCache"
|
||||
end
|
||||
|
||||
klass
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue