Sha256: a3be00f33fc99c6599ad6fc155aeee1d6107a982435211c910851c591cde22c8

Contents?: true

Size: 281 Bytes

Versions: 15

Compression:

Stored size: 281 Bytes

Contents

module EmailHelper
  def email_image_tag(image, **options)
    image_underscore = image.tr("-", "_")
    attachments.inline[image_underscore] = File.read(Rails.root.join("app/javascript/images/#{image}"))
    image_tag attachments.inline[image_underscore].url, **options
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
bullet_train-1.0.20 app/helpers/email_helper.rb
bullet_train-1.0.19 app/helpers/email_helper.rb
bullet_train-1.0.18 app/helpers/email_helper.rb
bullet_train-1.0.17 app/helpers/email_helper.rb
bullet_train-1.0.16 app/helpers/email_helper.rb
bullet_train-1.0.15 app/helpers/email_helper.rb
bullet_train-1.0.14 app/helpers/email_helper.rb
bullet_train-1.0.13 app/helpers/email_helper.rb
bullet_train-1.0.12 app/helpers/email_helper.rb
bullet_train-1.0.11 app/helpers/email_helper.rb
bullet_train-1.0.10 app/helpers/email_helper.rb
bullet_train-1.0.9 app/helpers/email_helper.rb
bullet_train-1.0.8 app/helpers/email_helper.rb
bullet_train-1.0.7 app/helpers/email_helper.rb
bullet_train-1.0.6 app/helpers/email_helper.rb