Sha256: 6bb581905c83082576350595508603742dd1d08d774116b456fcc2db4ea6ad25

Contents?: true

Size: 463 Bytes

Versions: 14

Compression:

Stored size: 463 Bytes

Contents

module Sufia
  module GenericFile
    module Versions
      @@count = 0
      def record_version_committer(user)
        version = content.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

14 entries across 14 versions & 2 rubygems

Version Path
sufia-models-6.2.0 app/models/concerns/sufia/generic_file/versions.rb
sufia-models-6.1.0 app/models/concerns/sufia/generic_file/versions.rb
sufia-models-6.0.0 app/models/concerns/sufia/generic_file/versions.rb
sufia-6.0.0 sufia-models/app/models/concerns/sufia/generic_file/versions.rb
sufia-6.0.0.rc4 sufia-models/app/models/concerns/sufia/generic_file/versions.rb
sufia-models-6.0.0.rc4 app/models/concerns/sufia/generic_file/versions.rb
sufia-6.0.0.rc3 sufia-models/app/models/concerns/sufia/generic_file/versions.rb
sufia-models-6.0.0.rc3 app/models/concerns/sufia/generic_file/versions.rb
sufia-6.0.0.rc2 sufia-models/app/models/concerns/sufia/generic_file/versions.rb
sufia-models-6.0.0.rc2 app/models/concerns/sufia/generic_file/versions.rb
sufia-6.0.0.rc1 sufia-models/app/models/concerns/sufia/generic_file/versions.rb
sufia-models-6.0.0.rc1 app/models/concerns/sufia/generic_file/versions.rb
sufia-6.0.0.beta1 sufia-models/app/models/concerns/sufia/generic_file/versions.rb
sufia-models-6.0.0.beta1 app/models/concerns/sufia/generic_file/versions.rb