Sha256: 928fb69759eb4479290f42f1d35a3d1c27c0087aacd8def62b5cb3efa4babcbd
Contents?: true
Size: 567 Bytes
Versions: 13
Compression:
Stored size: 567 Bytes
Contents
# frozen_string_literal: true module Hyrax module Actors 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 end
Version data entries
13 entries across 13 versions & 1 rubygems