Well, it seems I forgot to add the acts_as_authenticated to the repository on my...
[selectricity-live] / vendor / plugins / acts_as_authenticated / generators / authenticated_mailer / authenticated_mailer_generator.rb
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

Benjamin Mako Hill || Want to submit a patch?