diff options
Diffstat (limited to 'railties/lib/rails/generators/erb/mailer/mailer_generator.rb')
-rw-r--r-- | railties/lib/rails/generators/erb/mailer/mailer_generator.rb | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/railties/lib/rails/generators/erb/mailer/mailer_generator.rb b/railties/lib/rails/generators/erb/mailer/mailer_generator.rb deleted file mode 100644 index 5266259e2f..0000000000 --- a/railties/lib/rails/generators/erb/mailer/mailer_generator.rb +++ /dev/null @@ -1,20 +0,0 @@ -require 'rails/generators/erb' - -module Erb - module Generators - class MailerGenerator < Base - argument :actions, :type => :array, :default => [], :banner => "method method" - - 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) - template "view.erb", File.join("app/views", "#{@path}.erb") - end - end - end - end -end |