Sha256: 29849e95c6eeef265c00f68f59f1c573061270dd1d19f904b156a527ba28f2c4

Contents?: true

Size: 531 Bytes

Versions: 3

Compression:

Stored size: 531 Bytes

Contents

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


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

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hydra-collections-8.2.0 app/models/concerns/hydra/collection.rb
hydra-collections-8.1.1 app/models/concerns/hydra/collection.rb
hydra-collections-8.1.0 app/models/concerns/hydra/collection.rb