Sha256: beb2b2b82715c7102b63cfa60450b9ec42f86f4220c45f8a6b487b575247597f

Contents?: true

Size: 625 Bytes

Versions: 37

Compression:

Stored size: 625 Bytes

Contents

module CurationConcerns
  class CurationConcern
    class_attribute :actor_factory
    self.actor_factory = CurationConcerns::Actors::ActorFactory

    # A consumer of this method can inject a different factory
    # into this class in order to change the behavior of this method.
    # @param [ActiveFedora::Base] curation_concern a work to be updated
    # @param [User] current_user the depositor/updater of the work
    # @return [#create, #update] an actor that can create and update the work
    def self.actor(curation_concern, current_user)
      actor_factory.build(curation_concern, current_user)
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
curation_concerns-1.7.8 app/services/curation_concerns/curation_concern.rb
curation_concerns-1.7.7 app/services/curation_concerns/curation_concern.rb
curation_concerns-2.0.0 app/services/curation_concerns/curation_concern.rb
curation_concerns-2.0.0.rc2 app/services/curation_concerns/curation_concern.rb
curation_concerns-1.7.6 app/services/curation_concerns/curation_concern.rb
curation_concerns-1.7.5 app/services/curation_concerns/curation_concern.rb
curation_concerns-1.7.4 app/services/curation_concerns/curation_concern.rb
curation_concerns-1.7.3 app/services/curation_concerns/curation_concern.rb
curation_concerns-1.7.2 app/services/curation_concerns/curation_concern.rb
curation_concerns-2.0.0.rc1 app/services/curation_concerns/curation_concern.rb
curation_concerns-1.7.1 app/services/curation_concerns/curation_concern.rb
curation_concerns-1.7.0 app/services/curation_concerns/curation_concern.rb
curation_concerns-1.7.0.beta1 app/services/curation_concerns/curation_concern.rb
curation_concerns-1.6.3 app/services/curation_concerns/curation_concern.rb
curation_concerns-1.6.2 app/services/curation_concerns/curation_concern.rb
curation_concerns-1.6.1 app/services/curation_concerns/curation_concern.rb
curation_concerns-1.6.0 app/services/curation_concerns/curation_concern.rb
curation_concerns-1.5.0 app/services/curation_concerns/curation_concern.rb
curation_concerns-1.4.0 app/services/curation_concerns/curation_concern.rb
curation_concerns-1.3.3 app/services/curation_concerns/curation_concern.rb