Sha256: bcddb53f3f4e8735490bf751f8ceab2e39f18c7a4daad72005fa36f9ecad4908

Contents?: true

Size: 461 Bytes

Versions: 7

Compression:

Stored size: 461 Bytes

Contents

module CurationConcerns
  module FileSet
    module Versions
      @@count = 0
      def record_version_committer(user)
        version = latest_version
        # content datastream not (yet?) present
        return if version.nil?
        @@count += 1
        # raise "Recording #{@@count} #{version.uri} for #{user.user_key}" if @@count == 3
        VersionCommitter.create(version_id: version.uri, committer_login: user.user_key)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
curation_concerns-models-0.8.0 app/models/concerns/curation_concerns/file_set/versions.rb
curation_concerns-models-0.7.0 app/models/concerns/curation_concerns/file_set/versions.rb
curation_concerns-models-0.6.0 app/models/concerns/curation_concerns/file_set/versions.rb
curation_concerns-models-0.5.0 app/models/concerns/curation_concerns/file_set/versions.rb
curation_concerns-models-0.4.0 app/models/concerns/curation_concerns/file_set/versions.rb
curation_concerns-models-0.3.0 app/models/concerns/curation_concerns/file_set/versions.rb
curation_concerns-models-0.2.0 app/models/concerns/curation_concerns/file_set/versions.rb