Sha256: 167800fab72af8c02789a77edb3bae0b53ae3cc1ec89bfd6a705f4f45ad8f9e5

Contents?: true

Size: 770 Bytes

Versions: 6

Compression:

Stored size: 770 Bytes

Contents

#---
# Excerpted from "Scripted GUI Testing With Ruby",
# published by The Pragmatic Bookshelf.
# Copyrights apply to this code. It may not be used to create training material, 
# courses, books, articles, and the like. Contact us if you are in doubt.
# We make no guarantees that this code is fit for any purpose. 
# Visit http://www.pragmaticprogrammer.com/titles/idgtr for more book information.
#---
class PartyMailer < ActionMailer::Base
  def invite(party, address)
    @subject         = "Invitation to #{party.name}"
    @from            = 'no-reply@example.com'
    @recipients      = address
    @sent_on         = Time.now
    @body['party']   = party
    @body['url']     = party_url party, :host => 'localhost:3000'
    @body['address'] = address
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
win_gui-0.1.6 book_code/novite/app/models/party_mailer.rb
win_gui-0.1.4 book_code/novite/app/models/party_mailer.rb
win_gui-0.1.3 book_code/novite/app/models/party_mailer.rb
win_gui-0.1.2 book_code/novite/app/models/party_mailer.rb
win_gui-0.1.1 book_code/novite/app/models/party_mailer.rb
win_gui-0.1.0 book_code/novite/app/models/party_mailer.rb