instance method to_trix_attachment

Ruby on Rails 7.0.10

Since v6.0.6

Available in: v6.0.6 v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

to_trix_attachment(content = trix_attachment_content)

No documentation comment.

Parameters

content opt = trix_attachment_content
Source
# 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

Defined in actiontext/lib/action_text/attachments/trix_conversion.rb line 22 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionText::Attachments::TrixConversion

Type at least 2 characters to search.

↑↓ navigate · open · esc close