Sha256: f7533f26c7a8b5e08accb2f8980b62aa8bd19d8c0286fe25f6f1410405bc9be3
Contents?: true
Size: 555 Bytes
Versions: 61
Compression:
Stored size: 555 Bytes
Contents
module Sufia module FileContent module Versions def get_version(version_id) self.versions.select { |v| v.versionID == version_id}.first end def latest_version self.versions.first end def version_committer(version) vc = VersionCommitter.where(:obj_id => version.pid, :datastream_id => version.dsid, :version_id => version.versionID) return vc.empty? ? nil : vc.first.committer_login end end end end
Version data entries
61 entries across 61 versions & 2 rubygems