Method: ActionText::Attachable.from_node
- Defined in:
- lib/action_text/attachable.rb
.from_node(node) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 |
# File '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 |