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.6.1 app/models/ddr/attachment.rb
ddr-core-1.6.0 app/models/ddr/attachment.rb
ddr-core-1.5.5 app/models/ddr/attachment.rb
ddr-core-1.5.4 app/models/ddr/attachment.rb
ddr-core-1.5.2 app/models/ddr/attachment.rb
ddr-core-1.5.3 app/models/ddr/attachment.rb
ddr-core-1.5.1 app/models/ddr/attachment.rb
ddr-core-1.4.4 app/models/ddr/attachment.rb
ddr-core-1.4.3 app/models/ddr/attachment.rb
ddr-core-1.4.2 app/models/ddr/attachment.rb
ddr-core-1.4.0 app/models/ddr/attachment.rb
ddr-core-1.3.0 app/models/ddr/attachment.rb
ddr-core-1.2.0 app/models/ddr/attachment.rb
ddr-core-1.2.0.rc3 app/models/ddr/attachment.rb
ddr-core-1.2.0.rc2 app/models/ddr/attachment.rb
ddr-core-1.2.0.rc1 app/models/ddr/attachment.rb
ddr-core-1.1.2 app/models/ddr/attachment.rb
ddr-core-1.1.1 app/models/ddr/attachment.rb
ddr-core-1.1.0 app/models/ddr/attachment.rb
ddr-core-1.0.0 app/models/ddr/attachment.rb