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-0.3.0 | app/models/ddr/attachment.rb |
ddr-core-0.2.2 | app/models/ddr/attachment.rb |
ddr-core-0.2.1 | app/models/ddr/attachment.rb |