Module: ActionText::Attachments::TrixConversion
- Extended by:
 - ActiveSupport::Concern
 
- Included in:
 - ActionText::Attachment
 
- Defined in:
 - actiontext/lib/action_text/attachments/trix_conversion.rb
 
Instance Method Summary collapse
Methods included from ActiveSupport::Concern
append_features, class_methods, extended, included, prepend_features, prepended
Instance Method Details
#to_trix_attachment(content = trix_attachment_content) ⇒ Object
      24 25 26 27 28  | 
    
      # File 'actiontext/lib/action_text/attachments/trix_conversion.rb', line 24 def (content = ) attributes = full_attributes.dup attributes["content"] = content if content TrixAttachment.from_attributes(attributes) end  |