diff options
author | José Valim and Mikel Lindsaar <pair@programming.com> | 2010-01-26 01:06:48 +0100 |
---|---|---|
committer | José Valim and Mikel Lindsaar <pair@programming.com> | 2010-01-26 01:09:08 +0100 |
commit | 1b3cb54ebae685d4db9eefc99ce68b36d5641751 (patch) | |
tree | 5f8eed9c31a9cdeeb8982ecaab9463259eecd3be /railties/lib/generators/erb | |
parent | f14390091c40149dcd0982ada097be5bcbb37003 (diff) | |
download | rails-1b3cb54ebae685d4db9eefc99ce68b36d5641751.tar.gz rails-1b3cb54ebae685d4db9eefc99ce68b36d5641751.tar.bz2 rails-1b3cb54ebae685d4db9eefc99ce68b36d5641751.zip |
More work on generated mailer templates.
Diffstat (limited to 'railties/lib/generators/erb')
-rw-r--r-- | railties/lib/generators/erb/mailer/mailer_generator.rb | 2 | ||||
-rw-r--r-- | railties/lib/generators/erb/mailer/templates/view.text.erb (renamed from railties/lib/generators/erb/mailer/templates/view.erb) | 0 |
2 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/generators/erb/mailer/mailer_generator.rb b/railties/lib/generators/erb/mailer/mailer_generator.rb index 4ec2f4c9f4..408c942cef 100644 --- a/railties/lib/generators/erb/mailer/mailer_generator.rb +++ b/railties/lib/generators/erb/mailer/mailer_generator.rb @@ -12,7 +12,7 @@ module Erb def create_view_files actions.each do |action| @action, @path = action, File.join(file_path, action) - template "view.erb", File.join("app/views", "#{@path}.erb") + template "view.text.erb", File.join("app/views", "#{@path}.text.erb") end end end diff --git a/railties/lib/generators/erb/mailer/templates/view.erb b/railties/lib/generators/erb/mailer/templates/view.text.erb index 6d597256a6..6d597256a6 100644 --- a/railties/lib/generators/erb/mailer/templates/view.erb +++ b/railties/lib/generators/erb/mailer/templates/view.text.erb |