Method: ActionText::Content#append_attachables

Defined in:
actiontext/lib/action_text/content.rb

#append_attachables(attachables) ⇒ Object



93
94
95
96
# File 'actiontext/lib/action_text/content.rb', line 93

def append_attachables(attachables)
  attachments = ActionText::Attachment.from_attachables(attachables)
  self.class.new([self.to_s.presence, *attachments].compact.join("\n"))
end