From 0e9efae4745e232b1c778fda69ee110e42a223a7 Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Thu, 2 Apr 2009 12:05:21 -0500 Subject: Nicer name for anonymous local cache middleware class --- activesupport/lib/active_support/cache/strategy/local_cache.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'activesupport/lib/active_support/cache/strategy/local_cache.rb') diff --git a/activesupport/lib/active_support/cache/strategy/local_cache.rb b/activesupport/lib/active_support/cache/strategy/local_cache.rb index d83e259a2a..84d9a0e6d8 100644 --- a/activesupport/lib/active_support/cache/strategy/local_cache.rb +++ b/activesupport/lib/active_support/cache/strategy/local_cache.rb @@ -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 -- cgit v1.2.3