Sha256: 86086b295460e457ae673902228124ad5402bf53741426bcd11c2df1f73a1a5a
Contents?: true
Size: 736 Bytes
Versions: 9
Compression:
Stored size: 736 Bytes
Contents
module Locomotive module Concerns module Site module Cache extend ActiveSupport::Concern included do ## fields ## field :cache_enabled, type: Boolean, default: false field :cache_control field :cache_vary field :template_version, type: DateTime field :content_version, type: DateTime ## callbacks ## before_save :touch_content_version def touch_content_version touch(:content_version) true end end def last_modified_at [self.content_version, self.template_version].compact.sort.last || self.updated_at end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems