Sha256: 5285ac56947b828b2224026368d51f211cc481398b495a72d445b4bc4f8fc1ba

Contents?: true

Size: 441 Bytes

Versions: 8

Compression:

Stored size: 441 Bytes

Contents

ActionMailer::Base.delivery_method = :test
class Mailer < ActionMailer::Base

  def test(options={})
    mail({:from     => 'from@seatbelt.co.nz',
          :to       => 'test@seatbelt.co.nz',
          :cc       => 'cc@seatbelt.co.nz',
          :bcc      => 'bcc@seatbelt.co.nz',
          :subject  => 'mail subject'}.merge(options)) do |format|
      format.text { render :text => options[:body] || 'mail body text' }
    end
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
seatbelt-1.0.0 test/helpers/mailer.rb
seatbelt-0.5.0 test/helpers/mailer.rb
seatbelt-0.4.0 test/helpers/mailer.rb
seatbelt-0.3.1 test/helpers/mailer.rb
seatbelt-0.3.0 test/helpers/mailer.rb
seatbelt-0.2.0 test/helpers/mailer.rb
seatbelt-0.1.1 test/helpers/mailer.rb
seatbelt-0.1.0 test/helpers/mailer.rb