class method
self.from_node
Ruby on Rails 7.2.3
Since v6.0.6Signature
self.from_node(node)
No documentation comment.
Parameters
-
nodereq
Source
# File actiontext/lib/action_text/attachables/remote_image.rb, line 11
def from_node(node)
if node["url"] && content_type_is_image?(node["content-type"])
new(attributes_from_node(node))
end
end
Defined in actiontext/lib/action_text/attachables/remote_image.rb line 11
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionText::Attachables::RemoteImage