Method: ActionMosaico::Attachment.from_attributes

Defined in:
lib/action_mosaico/attachment.rb

.from_attributes(attributes, attachable = nil) ⇒ Object



34
35
36
37
38
# File 'lib/action_mosaico/attachment.rb', line 34

def from_attributes(attributes, attachable = nil)
  if node = node_from_attributes(attributes)
    from_node(node, attachable)
  end
end