Sha256: 213bccbd982b8b86e90ccaa3491c09024ecda486ee88bcbfa0feca47652c1ad4
Contents?: true
Size: 529 Bytes
Versions: 7
Compression:
Stored size: 529 Bytes
Contents
# frozen_string_literal: true module Hyrax module Workflow module ActivateObject ## # This is a built in function for workflow, setting the `#state` # of the target to the Fedora 'active' status URI # # @param target [#state] an instance of a model that includes `Hyrax::Suppressible` # # @return [RDF::Vocabulary::Term] the Fedora Resource Status 'active' term def self.call(target:, **) target.state = Vocab::FedoraResourceStatus.active end end end end
Version data entries
7 entries across 7 versions & 1 rubygems