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 / templates / notifier.rb
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

Benjamin Mako Hill || Want to submit a patch?