class method
self.from_node
Ruby on Rails 7.0.10
Since v6.0.6Signature
self.from_node(node)
No documentation comment.
Parameters
-
nodereq
Source
# File actiontext/lib/action_text/attachable.rb, line 10
def from_node(node)
if attachable = attachable_from_sgid(node["sgid"])
attachable
elsif attachable = ActionText::Attachables::ContentAttachment.from_node(node)
attachable
elsif attachable = ActionText::Attachables::RemoteImage.from_node(node)
attachable
else
ActionText::Attachables::MissingAttachable
end
end
Defined in actiontext/lib/action_text/attachable.rb line 10
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionText::Attachable