Sha256: 4fe63030853183091686fc7891ee57d03f4f4455acbaa948b6989893e33671a1
Contents?: true
Size: 757 Bytes
Versions: 3
Compression:
Stored size: 757 Bytes
Contents
#:enddoc: module RailsConnector class ContentCache < CmsBaseModel self.key_prefix = "cc" property :revision_id property :transferring_to # TODO remove when renaming workspace to revision in code def workspace_id revision_id end # returns the workspace that is represented by this content cache. # returns nil if the workspace cannot be found. def workspace @workspace ||= Workspace.find_by_id(workspace_id) end # returns the workspace that this content cache is currently transferring to. # returns nil if no transfer is taking place or if the workspace cannot be found. def transfer_target @transfer_target ||= transferring_to ? Workspace.find_by_id(transferring_to) : nil end end end # module RailsConnector
Version data entries
3 entries across 3 versions & 1 rubygems