Sha256: a5227fea9f9cbfc1016cb1553770d93bb9d68cf461212915d08e38a3dbd12d46

Contents?: true

Size: 780 Bytes

Versions: 4

Compression:

Stored size: 780 Bytes

Contents

module Hyrax
  class CurationConcern
    # You can customize the actor stack, so long as you do so before the actor
    # is used.  Once it is used, it becomes immutable.
    # @return [Hyrax::ActorFactory]
    def self.actor_factory
      Hyrax::ActorFactory
    end

    # 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 [Ability] current_ability the permission object for depositing this
    #   work.
    # @return [#create, #update] an actor that can create and update the work
    def self.actor(curation_concern, current_ability)
      actor_factory.build(curation_concern, current_ability)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hyrax-1.1.1 app/services/hyrax/curation_concern.rb
hyrax-1.1.0 app/services/hyrax/curation_concern.rb
hyrax-1.0.5 app/services/hyrax/curation_concern.rb
hyrax-1.0.4 app/services/hyrax/curation_concern.rb