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