instance method
trix_attachment_content
Ruby on Rails 6.1.7.10
Since v6.0.6 PrivateSignature
trix_attachment_content()
No documentation comment.
Source
# File actiontext/lib/action_text/attachments/trix_conversion.rb, line 29
def trix_attachment_content
if partial_path = attachable.try(:to_trix_content_attachment_partial_path)
ActionText::Content.render(partial: partial_path, formats: :html, object: self, as: model_name.element)
end
end
Defined in actiontext/lib/action_text/attachments/trix_conversion.rb line 29
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionText::Attachments::TrixConversion