Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 98
- Log:
Initial import of Hub, an account management application.
- Author:
- adh
- Date:
- Thu Oct 19 15:18:43 +0100 2006
- Size:
- 700 Bytes
1 | class <%= class_name %>Notifier < ActionMailer::Base |
2 | def signup_notification(<%= file_name %>) |
3 | setup_email(<%= file_name %>) |
4 | @subject += 'Please activate your new account' |
5 | @body[:url] = "http://YOURSITE/account/activate/#{<%= file_name %>.activation_code}" |
6 | end |
7 | |
8 | def activation(<%= file_name %>) |
9 | setup_email(<%= file_name %>) |
10 | @subject += 'Your account has been activated!' |
11 | @body[:url] = "http://YOURSITE/" |
12 | end |
13 | |
14 | protected |
15 | def setup_email(<%= file_name %>) |
16 | @recipients = "#{<%= file_name %>.email}" |
17 | @from = "ADMINEMAIL" |
18 | @subject = "[YOURSITE] " |
19 | @sent_on = Time.now |
20 | @body[:<%= file_name %>] = <%= file_name %> |
21 | end |
22 | end |
23 |