~michaelforrest/use-case-mapper/trunk

« back to all changes in this revision

Viewing changes to vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/mailer.rb

  • Committer: Richard Lee (Canonical)
  • Date: 2010-10-15 15:17:58 UTC
  • mfrom: (190.1.3 use-case-mapper)
  • Revision ID: richard.lee@canonical.com-20101015151758-wcvmfxrexsongf9d
Merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
class <%= class_name %> < ActionMailer::Base
2
 
  
3
 
<% for action in actions -%>
4
 
 
5
 
  def <%= action %>(sent_at = Time.now)
6
 
    subject    '<%= class_name %>#<%= action %>'
7
 
    recipients ''
8
 
    from       ''
9
 
    sent_on    sent_at
10
 
    
11
 
    body       :greeting => 'Hi,'
12
 
  end
13
 
<% end -%>
14
 
 
15
 
end