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

Version Path
bullet_train-1.3.16 app/helpers/email_helper.rb
bullet_train-1.3.15 app/helpers/email_helper.rb
bullet_train-1.3.14 app/helpers/email_helper.rb
bullet_train-1.3.13 app/helpers/email_helper.rb
bullet_train-1.3.12 app/helpers/email_helper.rb
bullet_train-1.3.11 app/helpers/email_helper.rb
bullet_train-1.3.10 app/helpers/email_helper.rb
bullet_train-1.3.9 app/helpers/email_helper.rb
bullet_train-1.3.8 app/helpers/email_helper.rb
bullet_train-1.3.7 app/helpers/email_helper.rb
bullet_train-1.3.6 app/helpers/email_helper.rb
bullet_train-1.3.5 app/helpers/email_helper.rb
bullet_train-1.3.4 app/helpers/email_helper.rb
bullet_train-1.3.3 app/helpers/email_helper.rb
bullet_train-1.3.2 app/helpers/email_helper.rb
bullet_train-1.3.1 app/helpers/email_helper.rb
bullet_train-1.3.0 app/helpers/email_helper.rb
bullet_train-1.2.27 app/helpers/email_helper.rb
bullet_train-1.2.26 app/helpers/email_helper.rb
bullet_train-1.2.25 app/helpers/email_helper.rb