| Class | RaceDayMailer |
| In: |
app/models/race_day_mailer.rb
|
| Parent: | ActionMailer::Base |
Send membership data to SportsBase
# File app/models/race_day_mailer.rb, line 5
5: def members_export(people, sent_on_time = Time.zone.now)
6: # Not thread-safe. Won't work for multiple associations.
7: ActionMailer::Base.default_url_options[:host] = RacingAssociation.current.rails_host
8:
9: subject "#{RacingAssociation.current.name} Members Export"
10: recipients 'dcowley@sportsbaseonline.com'
11: from "scott.willson@gmail.com"
12: sent_on sent_on_time
13:
14: body "See attached file"
15:
16: attachment "text/plain" do |a|
17: a.body = render(:file => "members_export", :body => { :people => people })
18: end
19: end