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

Version Path
infopark_cloud_connector-6.8.0.210.ed204b0 lib/rails_connector/content_cache.rb
infopark_cloud_connector-6.8.0.110.6570b45 lib/rails_connector/content_cache.rb
infopark_cloud_connector-6.8.0.72.d18d096 lib/rails_connector/content_cache.rb
infopark_cloud_connector-6.8.0.23.da7f96b lib/rails_connector/content_cache.rb
infopark_cloud_connector-6.8.0.16.def5e85 lib/rails_connector/content_cache.rb
infopark_cloud_connector-6.8.0.15.a24f5ff lib/rails_connector/content_cache.rb
infopark_cloud_connector-6.8.0.beta.200.891.647580e lib/rails_connector/content_cache.rb
infopark_cloud_connector-6.8.0.beta.200.889.d503e42 lib/rails_connector/content_cache.rb
infopark_cloud_connector-6.8.0.beta.200.883.f5f063b lib/rails_connector/content_cache.rb
infopark_cloud_connector-6.8.0.beta.200.884.4bd86e6 lib/rails_connector/content_cache.rb
infopark_cloud_connector-6.8.0.beta.200.869.9609b39 lib/rails_connector/content_cache.rb
infopark_cloud_connector-6.8.0.beta.200.856.8c0fec5 lib/rails_connector/content_cache.rb
infopark_cloud_connector-6.8.0.beta.200.809.bdfa8c3 lib/rails_connector/content_cache.rb
infopark_cloud_connector-6.8.0.beta.200.785.05d4af9 lib/rails_connector/content_cache.rb
infopark_cloud_connector-6.8.0.beta.200.744.99f67fc lib/rails_connector/content_cache.rb
infopark_cloud_connector-6.8.0.beta.200.720.44fbabd lib/rails_connector/content_cache.rb