Sha256: b5334b859aceaf80fed6407738b4f14e697fd5155a9ab82c5db0a83ad3875eb3
Contents?: true
Size: 808 Bytes
Versions: 2
Compression:
Stored size: 808 Bytes
Contents
module Catche module Controller module Pages extend ActiveSupport::Concern module ClassMethods # Caches an action by file # See ActionController `caches_page` for more information # # catches_page Project, :index def catches_page(model, *args) catche model, *args, :type => :page end def cache_page(content, path, extension = nil, gzip = Zlib::BEST_COMPRESSION) if self.catche? Catche::Tag.tag_page! page_cache_path(path, extension), *catche_constructed_tags end super end end def cache_page(content = nil, options = nil, gzip = Zlib::BEST_COMPRESSION) self.class.catche_constructed_tags = catche_tags super end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
catche-0.2.5 | lib/catche/controller/pages.rb |
catche-0.2.4 | lib/catche/controller/pages.rb |