aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails_generator
diff options
context:
space:
mode:
authorMislav Marohnić <mislav.marohnic@gmail.com>2008-04-18 17:13:15 -0500
committerJoshua Peek <josh@joshpeek.com>2008-04-18 17:13:15 -0500
commit36eecda8d0b5ebd3341692868b8faeec8fbce9d0 (patch)
tree01d6483c8d56fe6a48e98c4d072dd0b08d3e66bf /railties/lib/rails_generator
parentdfdb9f738e9842752c340634622624544efe18c1 (diff)
downloadrails-36eecda8d0b5ebd3341692868b8faeec8fbce9d0.tar.gz
rails-36eecda8d0b5ebd3341692868b8faeec8fbce9d0.tar.bz2
rails-36eecda8d0b5ebd3341692868b8faeec8fbce9d0.zip
Changed mailer generator to not use instance variables.
Signed-off-by: Joshua Peek <josh@joshpeek.com>
Diffstat (limited to 'railties/lib/rails_generator')
-rw-r--r--railties/lib/rails_generator/generators/components/mailer/templates/mailer.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/railties/lib/rails_generator/generators/components/mailer/templates/mailer.rb b/railties/lib/rails_generator/generators/components/mailer/templates/mailer.rb
index 127495fcbb..3a1724a62e 100644
--- a/railties/lib/rails_generator/generators/components/mailer/templates/mailer.rb
+++ b/railties/lib/rails_generator/generators/components/mailer/templates/mailer.rb
@@ -2,12 +2,12 @@ class <%= class_name %> < ActionMailer::Base
<% for action in actions -%>
def <%= action %>(sent_at = Time.now)
- @subject = '<%= class_name %>#<%= action %>'
- @body = {}
- @recipients = ''
- @from = ''
- @sent_on = sent_at
- @headers = {}
+ subject '<%= class_name %>#<%= action %>'
+ recipients ''
+ from ''
+ sent_on sent_at
+
+ body :action => '<%= action %>'
end
<% end -%>
end