Skip to content

Instantly share code, notes, and snippets.

@nirname nirname/notifier.rb
Last active Jul 10, 2018

Embed
What would you like to do?
Send email through ApplicationMailer with file attachments from ActiveStorage
response.docs.each_with_index do |doc, i|
attachments[doc.filename.to_s] = {:mime_type => doc.blob.content_type, :content => doc.blob.download }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.