Sha256: 1e2a27c263eca939efb143c72fc594f66d9f7b36aeedffd646bf949c00260dff
Contents?: true
Size: 560 Bytes
Versions: 1
Compression:
Stored size: 560 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) bootstrap = BootstrapEmail::Compiler.new(mail(*args) { |format| format.html { render layout: 'layouts/bootstrap-mailer.html.erb' } }) bootstrap.perform_full_compile end def make_bootstrap_mail(*args, &block) bootstrap = BootstrapEmail::Compiler.new(mail(*args, &block)) bootstrap.perform_full_compile end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bootstrap-email-0.3.4 | lib/bootstrap-email/action_mailer.rb |