Sha256: 80783e720a44e4a17dad37cd8b3ef2037fd9542dd6564a9b0d68f0209aec5f22
Contents?: true
Size: 659 Bytes
Versions: 4
Compression:
Stored size: 659 Bytes
Contents
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 bootstrap_email bootstrap_mail alias make_bootstrap_mail bootstrap_mail end end
Version data entries
4 entries across 4 versions & 1 rubygems