Sha256: f5d203070cffe6f0146aec5ed64a204447f979260ec0b32cdef40a9ff89bd5a4
Contents?: true
Size: 712 Bytes
Versions: 4
Compression:
Stored size: 712 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 # sit in the middle and compile the html def bootstrap_mail(*args, &block) mail_message = mail(*args, &block) # if you override the #mail method in you ApplicationMailer you may intentionally return something other than a mail message if mail_message bootstrap = BootstrapEmail::Compiler.new(mail_message, type: :rails) bootstrap.perform_full_compile end mail_message end alias_method :bootstrap_email, :bootstrap_mail alias_method :make_bootstrap_mail, :bootstrap_mail end end
Version data entries
4 entries across 4 versions & 1 rubygems