Skip to content
Browse files

RubyMemcache error message should not have been removed

  • Loading branch information...
1 parent 3be030a commit 535a23d139a08d54e7088c5ec8dc355dead8f973 @defunkt committed May 2, 2008
Showing with 2 additions and 0 deletions.
  1. +2 −0 init.rb
View
2 init.rb
@@ -13,6 +13,8 @@
rescue LoadError
end
+puts "=> You should be using the `memcache-client' gem. You're using RubyMemcache!" if Object.const_defined?(:RubyMemcache)
+
require 'acts_as_cached'
Object.send :include, ActsAsCached::Mixin

1 comment on commit 535a23d

@sr3d
sr3d commented on 535a23d Jun 1, 2008

currently the fragment_cache override is not called automatically in the init.rb, so using the cache helper with :ttl will make Rails throw up. I blogged about it here

http://alexle.net/archives/276

cheers!

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