Class: Hyrax::CurationConcern

Inherits:
Object
  • Object
show all
Defined in:
app/services/hyrax/curation_concern.rb

Class Method Summary collapse

Class Method Details

.actor(curation_concern, current_ability) ⇒ #create, #update

A consumer of this method can inject a different factory into this class in order to change the behavior of this method.

Parameters:

  • curation_concern (ActiveFedora::Base)

    a work to be updated

  • current_ability (Ability)

    the permission object for depositing this work.

Returns:

  • (#create, #update)

    an actor that can create and update the work



12
13
14
# File 'app/services/hyrax/curation_concern.rb', line 12

def self.actor(curation_concern, current_ability)
  actor_factory.build(curation_concern, current_ability)
end