Sha256: 099cca72001540937c9f8db568cf1068371cd74977118af8ba3cb98509131c85
Contents?: true
Size: 264 Bytes
Versions: 97
Compression:
Stored size: 264 Bytes
Contents
module EmailHelper def email_image_tag(image, **) image_underscore = image.tr("-", "_") attachments.inline[image_underscore] = File.read(Rails.root.join("app/assets/images/#{image}")) image_tag(attachments.inline[image_underscore].url, **) end end
Version data entries
97 entries across 97 versions & 1 rubygems