Skip to content
Browse files

Nicer name for anonymous local cache middleware class

  • Loading branch information...
1 parent 4442312 commit 0e9efae4745e232b1c778fda69ee110e42a223a7 @josh josh committed
Showing with 5 additions and 0 deletions.
  1. +5 −0 activesupport/lib/active_support/cache/strategy/local_cache.rb
View
5 activesupport/lib/active_support/cache/strategy/local_cache.rb
@@ -27,6 +27,11 @@ def call(env)
Thread.current[:#{thread_local_key}] = nil
end
EOS
+
+ def klass.to_s
+ "ActiveSupport::Cache::Strategy::LocalCache"
+ end
+
klass
end
end

0 comments on commit 0e9efae

Please sign in to comment.
Something went wrong with that request. Please try again.