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.14.0 app/helpers/email_helper.rb
bullet_train-1.13.0 app/helpers/email_helper.rb
bullet_train-1.12.3 app/helpers/email_helper.rb
bullet_train-1.12.2 app/helpers/email_helper.rb
bullet_train-1.12.1 app/helpers/email_helper.rb
bullet_train-1.12.0 app/helpers/email_helper.rb
bullet_train-1.11.0 app/helpers/email_helper.rb
bullet_train-1.10.0 app/helpers/email_helper.rb
bullet_train-1.9.0 app/helpers/email_helper.rb
bullet_train-1.8.5 app/helpers/email_helper.rb
bullet_train-1.8.4 app/helpers/email_helper.rb
bullet_train-1.8.3 app/helpers/email_helper.rb
bullet_train-1.8.2 app/helpers/email_helper.rb
bullet_train-1.8.1 app/helpers/email_helper.rb
bullet_train-1.8.0 app/helpers/email_helper.rb
bullet_train-1.7.23 app/helpers/email_helper.rb
bullet_train-1.7.22 app/helpers/email_helper.rb
bullet_train-1.7.21 app/helpers/email_helper.rb
bullet_train-1.7.20 app/helpers/email_helper.rb
bullet_train-1.7.19 app/helpers/email_helper.rb