Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…y checking for ActionView::Template
  • Loading branch information...
commit a5e937a4a52c710318752d6870fbe1a49a7c2338 1 parent 7b05934
@technoweenie technoweenie authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/acts_as_cached/fragment_cache.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.