Permalink
Browse files

dont override ActionView::Helpers::CacheHelper#cache for rails 2.1+ b…

…y checking for ActionView::Template
  • Loading branch information...
1 parent 7b05934 commit a5e937a4a52c710318752d6870fbe1a49a7c2338 @technoweenie technoweenie committed Mar 23, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/acts_as_cached/fragment_cache.rb
@@ -16,7 +16,7 @@ def self.setup_rails_for_memcache_fragments
def cache(name = {}, options = nil, &block)
@controller.cache_erb_fragment(block, name, options)
end
- end
+ end unless ::ActionView.const_defined?(:Template)
::ActionController::Base.fragment_cache_store = CACHE
end

0 comments on commit a5e937a

Please sign in to comment.