Sha256: 15fbb79733b5560989ad69b2a1749a658846c64ffc266e7581ad16c3609f00c2
Contents?: true
Size: 646 Bytes
Versions: 16
Compression:
Stored size: 646 Bytes
Contents
#:enddoc: 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
16 entries across 16 versions & 1 rubygems