Sha256: 47dd03cce188f7f71483dc75cc716efdc06d9cbccfae2234b9acc28a24558e96
Contents?: true
Size: 442 Bytes
Versions: 1
Compression:
Stored size: 442 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 :plain => options[:body] || 'mail body text' } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
seatbelt-2.0.0 | test/helpers/mailer.rb |