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