Sha256: 69ef7cca8a0ea7f3b071bd961f360ef86051cb23d7dea77d26bd1b136c2f2adc

Contents?: true

Size: 343 Bytes

Versions: 6

Compression:

Stored size: 343 Bytes

Contents

class AutoMailer < ActionMailer::Base
  include GhostInThePost::Automatic

  default from: 'john@example.com'

  def normal_email
    set_ghost_timeout 5000
    mail(to: 'example@example.org', subject: "Notification for you") do |format|
      format.html { render :normal_email }
      format.text { render :normal_email }
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ghost_in_the_post-0.0.11 spec/dummy/app/mailers/auto_mailer.rb
ghost_in_the_post-0.0.10 spec/dummy/app/mailers/auto_mailer.rb
ghost_in_the_post-0.0.9 spec/dummy/app/mailers/auto_mailer.rb
ghost_in_the_post-0.0.8 spec/dummy/app/mailers/auto_mailer.rb
ghost_in_the_post-0.0.7 spec/dummy/app/mailers/auto_mailer.rb
ghost_in_the_post-0.0.6 spec/dummy/app/mailers/auto_mailer.rb