Method: ActionText::Attachables::RemoteImage.from_node

Defined in:
actiontext/lib/action_text/attachables/remote_image.rb

.from_node(node) ⇒ Object



11
12
13
14
15
# 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