Sha256: 2c4c142fa931a82392b54391c91a3bd3e84c9a00d78736fc7f4aa1e515195f59
Contents?: true
Size: 410 Bytes
Versions: 21
Compression:
Stored size: 410 Bytes
Contents
require 'attachable' class Attachment include Mongoid::Document include Mongoid::Timestamps include Attachable field :title field :filename attaches :file, with_url_field: true, update_existing: true embedded_in :specialist_document_edition validates_with SafeHtml # TODO: Move this to a domain object in specialist publisher def snippet "[InlineAttachment:#{filename}]" end end
Version data entries
21 entries across 21 versions & 1 rubygems