Sha256: 015ae015bb70c3b51185bd796a51e9b5a047e14e2f7e8627244147ddc94437ef
Contents?: true
Size: 629 Bytes
Versions: 5
Compression:
Stored size: 629 Bytes
Contents
module Hyrax class CurationConcern # This attribute is set by Hyrax::Engine class_attribute :actor_factory # 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
5 entries across 5 versions & 1 rubygems