Sha256: 7239e55214d76e3e948a3326dd0162883aab9320428b013dd498a3fc8e84c4c3
Contents?: true
Size: 523 Bytes
Versions: 7
Compression:
Stored size: 523 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 that includes `Hyrax::Suppressible` # # @return [RDF::Vocabulary::Term] the Fedora Resource Status 'inactive' term module DeactivateObject def self.call(target:, **) target.state = Vocab::FedoraResourceStatus.inactive end end end end
Version data entries
7 entries across 7 versions & 1 rubygems