instance method
attachment_for_node
Ruby on Rails 8.0.4
Since v6.0.6 PrivateSignature
attachment_for_node(node, with_full_attributes: true)
No documentation comment.
Parameters
-
nodereq -
with_full_attributeskey = true
Source
# File actiontext/lib/action_text/content.rb, line 186
def attachment_for_node(node, with_full_attributes: true)
attachment = ActionText::Attachment.from_node(node)
with_full_attributes ? attachment.with_full_attributes : attachment
end
Defined in actiontext/lib/action_text/content.rb line 186
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionText::Content