class method
self.from_node
Ruby on Rails 8.0.4
Since v6.0.6Signature
self.from_node(node, attachable = nil)
No documentation comment.
Parameters
-
nodereq -
attachableopt = nil
Source
# File actiontext/lib/action_text/attachment.rb, line 31
def from_node(node, attachable = nil)
new(node, attachable || ActionText::Attachable.from_node(node))
end
Defined in actiontext/lib/action_text/attachment.rb line 31
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionText::Attachment