Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 206
- Log:
Initial import of Gullery, an open source photo gallery:
http://nubyonrails.com/pages/gullery
- Author:
- rool
- Date:
- Sun May 20 19:05:59 +0100 2007
- Size:
- 546 Bytes
1 | class UserNotifier < ActionMailer::Base |
2 | def signup_notification(user) |
3 | setup_email(user) |
4 | @subject += 'Please activate your new account' |
5 | @body[:url] = "http://YOURSITE/account" |
6 | end |
7 | |
8 | def activation(user) |
9 | setup_email(user) |
10 | @subject += 'Your account has been activated!' |
11 | @body[:url] = "http://YOURSITE/" |
12 | end |
13 | |
14 | protected |
15 | def setup_email(user) |
16 | @recipients = "#{user.email}" |
17 | @from = "ADMINEMAIL" |
18 | @subject = "[YOURSITE] " |
19 | @sent_on = Time.now |
20 | @body[:user] = user |
21 | end |
22 | end |