instance method
trix_attachment_content
Ruby on Rails 6.0.6
Since v6.0.6 PrivateSignature
trix_attachment_content()
No documentation comment.
Source
# 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.render(partial: partial_path, object: self, as: model_name.element)
end
end
Defined in actiontext/lib/action_text/attachments/trix_conversion.rb line 27
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionText::Attachments::TrixConversion