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

Version Path
sufia-4.0.0.beta2 sufia-models/lib/sufia/models/file_content/versions.rb
sufia-models-4.0.0.beta2 lib/sufia/models/file_content/versions.rb
sufia-4.0.0.beta1 sufia-models/lib/sufia/models/file_content/versions.rb
sufia-models-4.0.0.beta1 lib/sufia/models/file_content/versions.rb
sufia-models-3.7.2 lib/sufia/models/file_content/versions.rb
sufia-3.7.2 sufia-models/lib/sufia/models/file_content/versions.rb
sufia-models-3.7.1 lib/sufia/models/file_content/versions.rb
sufia-3.7.1 sufia-models/lib/sufia/models/file_content/versions.rb
sufia-models-3.7.0 lib/sufia/models/file_content/versions.rb
sufia-3.7.0 sufia-models/lib/sufia/models/file_content/versions.rb
sufia-3.6.1 sufia-models/lib/sufia/models/file_content/versions.rb
sufia-models-3.6.1 lib/sufia/models/file_content/versions.rb
sufia-3.6.0 sufia-models/lib/sufia/models/file_content/versions.rb
sufia-models-3.6.0 lib/sufia/models/file_content/versions.rb
sufia-3.5.0 sufia-models/lib/sufia/models/file_content/versions.rb
sufia-models-3.5.0 lib/sufia/models/file_content/versions.rb
sufia-3.4.0 sufia-models/lib/sufia/models/file_content/versions.rb
sufia-models-3.4.0 lib/sufia/models/file_content/versions.rb
sufia-3.4.0.rc4 sufia-models/lib/sufia/models/file_content/versions.rb
sufia-models-3.4.0.rc4 lib/sufia/models/file_content/versions.rb