class Object
Public Instance Methods
bootstrap_mail(*args)
click to toggle source
sit in the middle and compile the html
# File lib/bootstrap-email/action_mailer.rb, line 4 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
make_bootstrap_mail(*args, &block)
click to toggle source
# File lib/bootstrap-email/action_mailer.rb, line 9 def make_bootstrap_mail(*args, &block) bootstrap = BootstrapEmail::Compiler.new(mail(*args, &block)) bootstrap.perform_full_compile end