Sha256: c49c9954bffb83f19ff00ebe623a0a5e133e825524213c45d6dffeb128f57667

Contents?: true

Size: 369 Bytes

Versions: 3

Compression:

Stored size: 369 Bytes

Contents

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

  default from: 'john@example.com'

  def normal_email
    set_ghost_timeout 5000
    include_script "test"
    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

3 entries across 3 versions & 1 rubygems

Version Path
ghost_in_the_post-0.0.5 spec/dummy/app/mailers/auto_mailer.rb
ghost_in_the_post-0.0.4 spec/dummy/app/mailers/auto_mailer.rb
ghost_in_the_post-0.0.3 spec/dummy/app/mailers/auto_mailer.rb