Sha256: a13a9d104376a3e36629d97ca4a0f8eface9993a52d898636ec58be1815e99d8
Contents?: true
Size: 545 Bytes
Versions: 22
Compression:
Stored size: 545 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 with a +#state+ property; # e.g. a {Hyrax::Work} # # @return [RDF::Vocabulary::Term] the Fedora Resource Status 'active' term def self.call(target:, **) target.state = Hyrax::ResourceStatus::ACTIVE end end end end
Version data entries
22 entries across 22 versions & 1 rubygems