Sha256: 05c5346c3bb9102a659c4799ce9c0566adc60b2298f8ad64bf62edb04e94e85a

Contents?: true

Size: 464 Bytes

Versions: 31

Compression:

Stored size: 464 Bytes

Contents

module CurationConcerns
  module Collection
    extend ActiveSupport::Concern
    include Hydra::WithDepositor # for access to apply_depositor_metadata
    include Hydra::AccessControls::Permissions
    include CurationConcerns::RequiredMetadata
    include Hydra::Works::CollectionBehavior

    def add_members(new_member_ids)
      return if new_member_ids.nil? || new_member_ids.empty?
      members << ActiveFedora::Base.find(new_member_ids)
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
curation_concerns-1.2.0 app/models/concerns/curation_concerns/collection.rb
curation_concerns-1.1.2 app/models/concerns/curation_concerns/collection.rb
curation_concerns-1.1.1 app/models/concerns/curation_concerns/collection.rb
curation_concerns-1.1.0 app/models/concerns/curation_concerns/collection.rb
curation_concerns-1.0.0 app/models/concerns/curation_concerns/collection.rb
curation_concerns-1.0.0.beta10 app/models/concerns/curation_concerns/collection.rb
curation_concerns-1.0.0.beta9 app/models/concerns/curation_concerns/collection.rb
curation_concerns-1.0.0.beta8 app/models/concerns/curation_concerns/collection.rb
curation_concerns-1.0.0.beta7 app/models/concerns/curation_concerns/collection.rb
curation_concerns-1.0.0.beta6 app/models/concerns/curation_concerns/collection.rb
curation_concerns-1.0.0.beta5 app/models/concerns/curation_concerns/collection.rb