Class: ActionMailer::Base
- Inherits:
-
Object
- Object
- ActionMailer::Base
- Defined in:
- lib/bootstrap-email/action_mailer.rb
Instance Method Summary collapse
-
#bootstrap_mail(*args) ⇒ Object
sit in the middle and compile the html.
- #make_bootstrap_mail(*args, &block) ⇒ Object
Instance Method Details
#bootstrap_mail(*args) ⇒ Object
sit in the middle and compile the html
3 4 5 6 |
# File 'lib/bootstrap-email/action_mailer.rb', line 3 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) ⇒ Object
8 9 10 11 |
# File 'lib/bootstrap-email/action_mailer.rb', line 8 def make_bootstrap_mail *args, &block bootstrap = BootstrapEmail::Compiler.new(mail(*args, &block)) bootstrap.perform_full_compile end |