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
Instance Method Details
#to_trix_attachment(content = trix_attachment_content) ⇒ Object
22 23 24 25 26 |
# File 'actiontext/lib/action_text/attachments/trix_conversion.rb', line 22 def (content = ) attributes = full_attributes.dup attributes["content"] = content if content TrixAttachment.from_attributes(attributes) end |