diff options
author | José Valim <jose.valim@gmail.com> | 2009-06-25 16:21:33 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-06-25 16:21:33 +0200 |
commit | 534f7b54e33a142c8c0aca8b92a6298701efd13b (patch) | |
tree | 85c965e97cb44c39e4accb8e2d50c43e6dc1e031 /railties/lib | |
parent | 0bb95968db3695467b63357aab66a9dddb62295c (diff) | |
download | rails-534f7b54e33a142c8c0aca8b92a6298701efd13b.tar.gz rails-534f7b54e33a142c8c0aca8b92a6298701efd13b.tar.bz2 rails-534f7b54e33a142c8c0aca8b92a6298701efd13b.zip |
Mailer tests.
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/generators/erb/mailer/mailer_generator.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/lib/generators/erb/mailer/mailer_generator.rb b/railties/lib/generators/erb/mailer/mailer_generator.rb index 9b615d6608..286e6ae70a 100644 --- a/railties/lib/generators/erb/mailer/mailer_generator.rb +++ b/railties/lib/generators/erb/mailer/mailer_generator.rb @@ -3,6 +3,10 @@ module Erb class MailerGenerator < Base argument :actions, :type => :array, :default => [] + def create_view_folder + empty_directory File.join("app", "views", file_path) + end + def create_view_files actions.each do |action| @action, @path = action, File.join(file_path, action) |