Sha256: c9f2119e0eeee59a9fc099d9aeb84ddb679d7ea7e74fc582155d737d90ce8381
Contents?: true
Size: 496 Bytes
Versions: 29
Compression:
Stored size: 496 Bytes
Contents
module CurationConcerns class LeaseActor attr_reader :work # @param [Hydra::Works::Work] work def initialize(work) @work = work end # Update the visibility of the work to match the correct state of the lease, then clear the lease date, etc. # Saves the lease and the work def destroy work.lease_visibility! # If the lease has lapsed, update the current visibility. work.deactivate_lease! work.lease.save! work.save! end end end
Version data entries
29 entries across 29 versions & 2 rubygems