diff options
author | Guo Xiang Tan <tgx_world@hotmail.com> | 2014-11-25 09:14:59 +0800 |
---|---|---|
committer | Guo Xiang Tan <tgx_world@hotmail.com> | 2014-11-25 09:14:59 +0800 |
commit | b8d8ce7ba8e5e83e9b41e48fb6ef449bd36a97e3 (patch) | |
tree | dcc6dc7bcebc3ad552f055d153cd2cd822815ffe /railties/lib/rails/generators | |
parent | 35362fc2263d4d7784de172cb5f97eb2541fb65a (diff) | |
download | rails-b8d8ce7ba8e5e83e9b41e48fb6ef449bd36a97e3.tar.gz rails-b8d8ce7ba8e5e83e9b41e48fb6ef449bd36a97e3.tar.bz2 rails-b8d8ce7ba8e5e83e9b41e48fb6ef449bd36a97e3.zip |
Add tests which were incorrectly removed.
Diffstat (limited to 'railties/lib/rails/generators')
-rw-r--r-- | railties/lib/rails/generators/erb/mailer/mailer_generator.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/lib/rails/generators/erb/mailer/mailer_generator.rb b/railties/lib/rails/generators/erb/mailer/mailer_generator.rb index 1e290bb938..a228484c11 100644 --- a/railties/lib/rails/generators/erb/mailer/mailer_generator.rb +++ b/railties/lib/rails/generators/erb/mailer/mailer_generator.rb @@ -13,11 +13,11 @@ module Erb # :nodoc: @action = action formats.each do |format| - @view_path = File.join(view_base_path, filename_with_extensions(action, format)) - template filename_with_extensions(:view, format), @view_path + @path = File.join(view_base_path, filename_with_extensions(action, format)) + template filename_with_extensions(:view, format), @path - @layout_path = File.join(layout_base_path, filename_with_extensions("mailer", format)) - template filename_with_extensions(:layout, format), @layout_path + layout_path = File.join(layout_base_path, filename_with_extensions("mailer", format)) + template filename_with_extensions(:layout, format), layout_path end end |