Sha256: e6698b32cb8be38489efda957225ea48fbb6d02aa0be17248dede731fff4f153
Contents?: true
Size: 426 Bytes
Versions: 6
Compression:
Stored size: 426 Bytes
Contents
class ActionMailer::Base # 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
Version data entries
6 entries across 6 versions & 1 rubygems