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

Version Path
bootstrap-email-0.3.1 lib/bootstrap-email/action_mailer.rb
bootstrap-email-0.3.0 lib/bootstrap-email/action_mailer.rb
bootstrap-email-0.2.6 lib/bootstrap-email/action_mailer.rb
bootstrap-email-0.2.5 lib/bootstrap-email/action_mailer.rb
bootstrap-email-0.2.4 lib/bootstrap-email/action_mailer.rb
bootstrap-email-0.2.3 lib/bootstrap-email/action_mailer.rb