method
to_trix_attachment
v7.1.3.4 -
Show latest stable
- Class:
ActionText::Attachments::TrixConversion
to_trix_attachment(content = trix_attachment_content)public
No documentation available.
# File actiontext/lib/action_text/attachments/trix_conversion.rb, line 22
def to_trix_attachment(content = trix_attachment_content)
attributes = full_attributes.dup
attributes["content"] = content if content
TrixAttachment.from_attributes(attributes)
end