Sha256: f7cd9ee88372fafd50bc931215ddf2e599283be8e9fae7281763269f4085e149
Contents?: true
Size: 810 Bytes
Versions: 2
Compression:
Stored size: 810 Bytes
Contents
module Catche module Controller module Page extend ActiveSupport::Concern module ClassMethods # Caches an action by file # See ActionController `caches_page` for more information # # catches_action 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.3 | lib/catche/controller/page.rb |
catche-0.2.2 | lib/catche/controller/page.rb |