Flowdock
method

to_trix_attachment

Importance_0
v6.1.3.1 - Show latest stable - 0 notes - Class: TrixConversion
to_trix_attachment(content = trix_attachment_content) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide 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
Register or log in to add new notes.