Sha256: 1582d1fafbaca99210a5425322e28922aa698135d5afd7d5aabd0d04a187c316

Contents?: true

Size: 458 Bytes

Versions: 5

Compression:

Stored size: 458 Bytes

Contents

class Mailer < ActionMailer::Base
  include GhostInThePost::Mailer
  default from: 'john@example.com'

  def normal
    mail(to: 'example@example.org', subject: "Notification for you")
  end

  def multi
    mail(to: 'example@example.org', subject: "Notification for you") do |format|
      format.html
      format.text
    end
  end

  def timeout
    set_ghost_timeout 60000
    mail(to: 'example@example.org', subject: "Notification for you")
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ghost_in_the_post-0.1.4 spec/dummy/app/mailers/mailer.rb
ghost_in_the_post-0.1.3 spec/dummy/app/mailers/mailer.rb
ghost_in_the_post-0.1.2 spec/dummy/app/mailers/mailer.rb
ghost_in_the_post-0.1.0 spec/dummy/app/mailers/mailer.rb
ghost_in_the_post-0.0.14 spec/dummy/app/mailers/mailer.rb