aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-04-02 12:05:21 -0500
committerJoshua Peek <josh@joshpeek.com>2009-04-02 12:05:21 -0500
commit0e9efae4745e232b1c778fda69ee110e42a223a7 (patch)
tree5921d4bb12a4487126f08398dd4a4f4c08c031fb /activesupport
parent44423126c6f6133a1d9cf1d0832b527e8711d40f (diff)
downloadrails-0e9efae4745e232b1c778fda69ee110e42a223a7.tar.gz
rails-0e9efae4745e232b1c778fda69ee110e42a223a7.tar.bz2
rails-0e9efae4745e232b1c778fda69ee110e42a223a7.zip
Nicer name for anonymous local cache middleware class
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/cache/strategy/local_cache.rb5
1 files changed, 5 insertions, 0 deletions
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