Sha256: 823402fd880543fa18e2472103c9e06acc612d599b4d9c2af2ae10fa02bd0e5d

Contents?: true

Size: 265 Bytes

Versions: 43

Compression:

Stored size: 265 Bytes

Contents

module Ddr
  class Attachment < Resource

    include HasContent
    include HasExtractedText

    attribute :attached_to_id, Valkyrie::Types::ID.optional

    def attached_to
      Ddr.query_service.find_by(id: attached_to_id) if attached_to_id
    end

  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
ddr-core-1.17.0 app/models/ddr/attachment.rb
ddr-core-1.16.0 app/models/ddr/attachment.rb
ddr-core-1.15.0 app/models/ddr/attachment.rb
ddr-core-1.14.0 app/models/ddr/attachment.rb
ddr-core-1.13.2 app/models/ddr/attachment.rb
ddr-core-1.13.1 app/models/ddr/attachment.rb
ddr-core-1.13.0 app/models/ddr/attachment.rb
ddr-core-1.12.2 app/models/ddr/attachment.rb
ddr-core-1.12.1 app/models/ddr/attachment.rb
ddr-core-1.12.0 app/models/ddr/attachment.rb
ddr-core-1.11.0 app/models/ddr/attachment.rb
ddr-core-1.10.0 app/models/ddr/attachment.rb
ddr-core-1.9.0 app/models/ddr/attachment.rb
ddr-core-1.8.0 app/models/ddr/attachment.rb
ddr-core-1.7.0 app/models/ddr/attachment.rb
ddr-core-1.6.6 app/models/ddr/attachment.rb
ddr-core-1.6.5 app/models/ddr/attachment.rb
ddr-core-1.6.4 app/models/ddr/attachment.rb
ddr-core-1.6.3 app/models/ddr/attachment.rb
ddr-core-1.6.2 app/models/ddr/attachment.rb