module ActionText::Attachments::TrixConversion

def to_trix_attachment(content = trix_attachment_content)

def to_trix_attachment(content = trix_attachment_content)
  attributes = full_attributes.dup
  attributes["content"] = content if content
  TrixAttachment.from_attributes(attributes)
end