method
attachment_for_node
v8.1.1 -
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 187
def attachment_for_node(node, with_full_attributes: true)
attachment = ActionText::Attachment.from_node(node)
with_full_attributes ? attachment.with_full_attributes : attachment
end