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:
- 1109 Bytes
1 | class AuthenticatedMailerGenerator < Rails::Generator::NamedBase |
2 | def manifest |
3 | record do |m| |
4 | # Check for class naming collisions. |
5 | m.class_collisions class_path, "#{class_name}Notifier", "#{class_name}NotifierTest", "#{class_name}Observer" |
6 | |
7 | # Controller, helper, views, and test directories. |
8 | m.directory File.join('app/models', class_path) |
9 | m.directory File.join('app/views', class_path, "#{file_name}_notifier") |
10 | m.directory File.join('test/unit', class_path) |
11 | |
12 | %w( notifier observer ).each do |model_type| |
13 | m.template "#{model_type}.rb", File.join('app/models', |
14 | class_path, |
15 | "#{file_name}_#{model_type}.rb") |
16 | end |
17 | |
18 | m.template 'notifier_test.rb', File.join('test/unit', class_path, "#{file_name}_notifier_test.rb") |
19 | |
20 | # Mailer templates |
21 | %w( activation signup_notification ).each do |action| |
22 | m.template "#{action}.rhtml", |
23 | File.join('app/views', "#{file_name}_notifier", "#{action}.rhtml") |
24 | end |
25 | end |
26 | end |
27 | end |