diff options
Diffstat (limited to 'railties/lib/generators/erb/mailer/mailer_generator.rb')
-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) |