Module: Hyrax::Workflow::ActivateObject

Defined in:
app/services/hyrax/workflow/activate_object.rb

Class Method Summary collapse

Class Method Details

.call(target:) ⇒ RDF::Vocabulary::Term

This is a built in function for workflow, setting the `#state` of the target to the Fedora 'active' status URI

Parameters:

  • target (#state)

    an instance of a model that includes `Hyrax::Suppressible`

Returns:

  • (RDF::Vocabulary::Term)

    the Fedora Resource Status 'active' term


11
12
13
# File 'app/services/hyrax/workflow/activate_object.rb', line 11

def self.call(target:, **)
  target.state = Vocab::FedoraResourceStatus.active
end