Sha256: 67bf7eff4afb68cfc38822157f26610e3ceb4a000811e4be0f84544f93562bb4
Contents?: true
Size: 498 Bytes
Versions: 2
Compression:
Stored size: 498 Bytes
Contents
module Hyrax module Workflow class 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
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
hyrax-1.0.0.rc1 | app/services/hyrax/workflow/activate_object.rb |
test_hyrax-0.0.1.alpha | app/services/hyrax/workflow/activate_object.rb |