Skip to content

Commit

Permalink
HTML Emails: show logo inline, refs #55511
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-illi committed Apr 29, 2022
1 parent 0dac30e commit 8fbe4d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/email_helper.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module EmailHelper
def email_image_tag(image, **options)
attachments[image] = File.read(Rails.root.join("app/assets/images/#{image}"))
attachments.inline[image] = File.read(Rails.root.join("app/assets/images/#{image}"))
image_tag attachments[image].url, **options
end
end

0 comments on commit 8fbe4d9

Please sign in to comment.