instance method
to_trix_attachment
Ruby on Rails 7.2.3
Since v6.0.6Signature
to_trix_attachment(content = trix_attachment_content)
No documentation comment.
Parameters
-
contentopt = trix_attachment_content
Source
# File actiontext/lib/action_text/attachments/trix_conversion.rb, line 24
def to_trix_attachment(content = trix_attachment_content)
attributes = full_attributes.dup
attributes["content"] = content if content
TrixAttachment.from_attributes(attributes)
end
Defined in actiontext/lib/action_text/attachments/trix_conversion.rb line 24
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionText::Attachments::TrixConversion