method
attachment_for_node
v6.0.0 -
Show latest stable
- Class:
ActionText::Content
attachment_for_node(node, with_full_attributes: true)private
No documentation available.
# File actiontext/lib/action_text/content.rb, line 121
def attachment_for_node(node, with_full_attributes: true)
attachment = ActionText::Attachment.from_node(node)
with_full_attributes ? attachment.with_full_attributes : attachment
end