Sha256: 22e35b5bc113af6c36c33f427f18a1708af38804b5c3d417fe99feb32f71d495

Contents?: true

Size: 316 Bytes

Versions: 2

Compression:

Stored size: 316 Bytes

Contents

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

  default from: 'john@example.com'

  def normal_email
    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

2 entries across 2 versions & 1 rubygems

Version Path
ghost_in_the_post-0.0.2 spec/dummy/app/mailers/auto_mailer.rb
ghost_in_the_post-0.0.1 spec/dummy/app/mailers/auto_mailer.rb