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

Version Path
bullet_train-1.7.18 app/helpers/email_helper.rb
bullet_train-1.7.17 app/helpers/email_helper.rb
bullet_train-1.7.16 app/helpers/email_helper.rb
bullet_train-1.7.15 app/helpers/email_helper.rb
bullet_train-1.7.14 app/helpers/email_helper.rb
bullet_train-1.7.13 app/helpers/email_helper.rb
bullet_train-1.7.12 app/helpers/email_helper.rb
bullet_train-1.7.11 app/helpers/email_helper.rb
bullet_train-1.7.10 app/helpers/email_helper.rb
bullet_train-1.7.9 app/helpers/email_helper.rb
bullet_train-1.7.3 app/helpers/email_helper.rb
bullet_train-1.7.2 app/helpers/email_helper.rb
bullet_train-1.7.1 app/helpers/email_helper.rb
bullet_train-1.7.0 app/helpers/email_helper.rb
bullet_train-1.6.38 app/helpers/email_helper.rb
bullet_train-1.6.37 app/helpers/email_helper.rb
bullet_train-1.6.36 app/helpers/email_helper.rb
bullet_train-1.6.35 app/helpers/email_helper.rb
bullet_train-1.6.34 app/helpers/email_helper.rb
bullet_train-1.6.33 app/helpers/email_helper.rb