method
trix_attachment_content
v6.0.0 -
Show latest stable
- Class:
ActionText::Attachments::TrixConversion
trix_attachment_content()private
No documentation available.
# File actiontext/lib/action_text/attachments/trix_conversion.rb, line 27
def trix_attachment_content
if partial_path = attachable.try(:to_trix_content_attachment_partial_path)
ActionText::Content.renderer.render(partial: partial_path, object: self, as: model_name.element)
end
end