Sha256: aec5a00077ea2b641f4159c014c6a6d03ae8008b7609312df4fbc278ca0db0cd
Contents?: true
Size: 557 Bytes
Versions: 21
Compression:
Stored size: 557 Bytes
Contents
# frozen_string_literal: true module Hyrax module Workflow ## # This is a built in function for workflow, setting the +#state+ # of the target to the Fedora +inactive+ status URI # # @param target [#state] an instance of a model with a +#state+ property; # e.g. a {Hyrax::Work} # # @return [RDF::URI] the Fedora Resource Status 'inactive' term # @see Hyrax::ResourceStatus module DeactivateObject def self.call(target:, **) target.state = Hyrax::ResourceStatus::INACTIVE end end end end
Version data entries
21 entries across 21 versions & 1 rubygems