Sha256: 68dcc0398184963ae19d147c38595e656719775ba4d251fe4721f64714c35d29

Contents?: true

Size: 422 Bytes

Versions: 6

Compression:

Stored size: 422 Bytes

Contents

# frozen_string_literal: true

ActiveSupport.on_load(:action_mailer, { yield: true }) do |action_mailer|
  action_mailer.class_eval do # To support Rails less than 6
    def bootstrap_mail(*args, &block)
      message = mail(*args, &block)
      BootstrapEmail::Rails::MailBuilder.perform(message)
    end
    alias_method :bootstrap_email, :bootstrap_mail
    alias_method :make_bootstrap_mail, :bootstrap_mail
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bootstrap-email-1.5.1 lib/bootstrap-email/rails/action_mailer.rb
bootstrap-email-1.5.0 lib/bootstrap-email/rails/action_mailer.rb
bootstrap-email-1.4.1 lib/bootstrap-email/rails/action_mailer.rb
bootstrap-email-1.4.0 lib/bootstrap-email/rails/action_mailer.rb
bootstrap-email-1.3.1 lib/bootstrap-email/rails/action_mailer.rb
bootstrap-email-1.3.0 lib/bootstrap-email/rails/action_mailer.rb