Sha256: e35ceb432c76f65d1e56d479b3e48534e70de87cbfb042f7fe2fc72d022ed0fd

Contents?: true

Size: 267 Bytes

Versions: 56

Compression:

Stored size: 267 Bytes

Contents

module Pcdm::Models::Collections
  extend ActiveSupport::Concern
  def compose_from(*collections)
  	collections = collections.map {|c| (c.is_a? String) ? ActiveFedora::Base.find(c) : c }
  	self.structMetadata.merge(*collections.map {|c| c.structMetadata})
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
cul_hydra-1.11.2 app/models/concerns/pcdm/models/collections.rb
cul_hydra-1.11.1 app/models/concerns/pcdm/models/collections.rb
cul_hydra-1.11.0 app/models/concerns/pcdm/models/collections.rb
cul_hydra-1.10.0 app/models/concerns/pcdm/models/collections.rb
cul_hydra-1.9.6 app/models/concerns/pcdm/models/collections.rb
cul_hydra-1.9.5 app/models/concerns/pcdm/models/collections.rb
cul_hydra-1.9.4 app/models/concerns/pcdm/models/collections.rb
cul_hydra-1.9.3 app/models/concerns/pcdm/models/collections.rb
cul_hydra-1.9.2 app/models/concerns/pcdm/models/collections.rb
cul_hydra-1.9.1 app/models/concerns/pcdm/models/collections.rb
cul_hydra-1.9.0 app/models/concerns/pcdm/models/collections.rb
cul_hydra-1.8.0 app/models/concerns/pcdm/models/collections.rb
cul_hydra-1.7.6 app/models/concerns/pcdm/models/collections.rb
cul_hydra-1.7.5 app/models/concerns/pcdm/models/collections.rb
cul_hydra-1.7.4 app/models/concerns/pcdm/models/collections.rb
cul_hydra-1.7.3 app/models/concerns/pcdm/models/collections.rb
cul_hydra-1.7.2 app/models/concerns/pcdm/models/collections.rb
cul_hydra-1.7.1 app/models/concerns/pcdm/models/collections.rb
cul_hydra-1.7.0 app/models/concerns/pcdm/models/collections.rb
cul_hydra-1.6.4 app/models/concerns/pcdm/models/collections.rb