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