Sha256: ef9f7b98435d905192337101d97316ed6a9cf3bc96b83e6aa018108de97d4dd1

Contents?: true

Size: 617 Bytes

Versions: 14

Compression:

Stored size: 617 Bytes

Contents

module CurationConcerns
  class CurationConcern
    class_attribute :actor_factory
    self.actor_factory = CurationConcerns::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

14 entries across 14 versions & 1 rubygems

Version Path
curation_concerns-1.0.0.beta1 app/services/curation_concerns/curation_concern.rb
curation_concerns-0.14.0 app/services/curation_concerns/curation_concern.rb
curation_concerns-0.14.0.pre4 app/services/curation_concerns/curation_concern.rb
curation_concerns-0.14.0.pre3 app/services/curation_concerns/curation_concern.rb
curation_concerns-0.14.0.pre2 app/services/curation_concerns/curation_concern.rb
curation_concerns-0.14.0.pre1 app/services/curation_concerns/curation_concern.rb
curation_concerns-0.13.1 app/services/curation_concerns/curation_concern.rb
curation_concerns-0.13.0 app/services/curation_concerns/curation_concern.rb
curation_concerns-0.12.0 app/services/curation_concerns/curation_concern.rb
curation_concerns-0.12.0.pre9 app/services/curation_concerns/curation_concern.rb
curation_concerns-0.12.0.pre8 app/services/curation_concerns/curation_concern.rb
curation_concerns-0.12.0.pre7 app/services/curation_concerns/curation_concern.rb
curation_concerns-0.12.0.pre6 app/services/curation_concerns/curation_concern.rb
curation_concerns-0.12.0.pre5 app/services/curation_concerns/curation_concern.rb