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