Method: ActionText::Attachment.from_node

Defined in:
lib/action_text/attachment.rb

.from_node(node, attachable = nil) ⇒ Object



16
17
18
# File 'lib/action_text/attachment.rb', line 16

def from_node(node, attachable = nil)
  new(node, attachable || ActionText::Attachable.from_node(node))
end