Sha256: 9a5a6f24bf64705b0b3db8e09fe98b5bf5a442abd637da4d3e5a1eaf708b6a9f

Contents?: true

Size: 303 Bytes

Versions: 3

Compression:

Stored size: 303 Bytes

Contents

module Ddr
  module Models
    module HasAttachments
      extend ActiveSupport::Concern

      included do
        has_many :attachments,
                 predicate: ::RDF::URI("http://projecthydra.org/ns/relations#isAttachedTo"),
                 class_name: 'Attachment'
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ddr-models-3.0.0.alpha.3 lib/ddr/models/has_attachments.rb
ddr-models-3.0.0.alpha.2 lib/ddr/models/has_attachments.rb
ddr-models-3.0.0.alpha.1 lib/ddr/models/has_attachments.rb