Sha256: 554f4902a2eb65c8855dc724718c65496b53c9e417bae5d6a832401a26473cf0
Contents?: true
Size: 636 Bytes
Versions: 21
Compression:
Stored size: 636 Bytes
Contents
module RailsConnector class ContentCache < CmsBaseModel self.key_prefix = "cc" property :revision_id property :transferring_to # returns the revision that is represented by this content cache. # returns nil if the revision cannot be found. def revision @revision ||= Revision.find_by_id(revision_id) end # returns the revision that this content cache is currently transferring to. # returns nil if no transfer is taking place or if the revision cannot be found. def transfer_target @transfer_target ||= transferring_to ? Revision.find_by_id(transferring_to) : nil end end end # module RailsConnector
Version data entries
21 entries across 21 versions & 1 rubygems