Method: ActionText::Attachment.from_node
- Defined in:
- actiontext/lib/action_text/attachment.rb
.from_node(node, attachable = nil) ⇒ Object
31 32 33 |
# File 'actiontext/lib/action_text/attachment.rb', line 31 def from_node(node, attachable = nil) new(node, attachable || ActionText::Attachable.from_node(node)) end |