class ActionText::Content

def attachment_for_node(node, with_full_attributes: true)

def attachment_for_node(node, with_full_attributes: true)
  attachment = ActionText::Attachment.from_node(node)
  with_full_attributes ? attachment.with_full_attributes : attachment
end