diff options
author | José Valim <jose.valim@gmail.com> | 2009-06-25 17:34:09 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-06-26 11:59:13 +0200 |
commit | 0f1c325f3cd8bfbedc0a6e4925122016288e2817 (patch) | |
tree | 0eaecf50e4e72ab4a71958385c15930e6555615d /railties/lib | |
parent | 915f108d6a47b9c29e11ebe0b140ef017eb015b0 (diff) | |
download | rails-0f1c325f3cd8bfbedc0a6e4925122016288e2817.tar.gz rails-0f1c325f3cd8bfbedc0a6e4925122016288e2817.tar.bz2 rails-0f1c325f3cd8bfbedc0a6e4925122016288e2817.zip |
Improving generators runner.
Diffstat (limited to 'railties/lib')
3 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/generators/erb/mailer/mailer_generator.rb b/railties/lib/generators/erb/mailer/mailer_generator.rb index 286e6ae70a..73db3d2484 100644 --- a/railties/lib/generators/erb/mailer/mailer_generator.rb +++ b/railties/lib/generators/erb/mailer/mailer_generator.rb @@ -1,7 +1,7 @@ module Erb module Generators class MailerGenerator < Base - argument :actions, :type => :array, :default => [] + argument :actions, :type => :array, :default => [], :banner => "method method" def create_view_folder empty_directory File.join("app", "views", file_path) diff --git a/railties/lib/generators/rails/mailer/mailer_generator.rb b/railties/lib/generators/rails/mailer/mailer_generator.rb index 15140f2127..6e7e6e811e 100644 --- a/railties/lib/generators/rails/mailer/mailer_generator.rb +++ b/railties/lib/generators/rails/mailer/mailer_generator.rb @@ -1,7 +1,7 @@ module Rails module Generators class MailerGenerator < NamedBase - argument :actions, :type => :array, :default => [] + argument :actions, :type => :array, :default => [], :banner => "method method" def check_class_collision class_collisions class_name diff --git a/railties/lib/generators/test_unit/mailer/mailer_generator.rb b/railties/lib/generators/test_unit/mailer/mailer_generator.rb index 125371b173..84e3024427 100644 --- a/railties/lib/generators/test_unit/mailer/mailer_generator.rb +++ b/railties/lib/generators/test_unit/mailer/mailer_generator.rb @@ -1,7 +1,7 @@ module TestUnit module Generators class MailerGenerator < Base - argument :actions, :type => :array, :default => [] + argument :actions, :type => :array, :default => [], :banner => "method method" def create_test_files template "unit_test.rb", File.join('test', 'unit', class_path, "#{file_name}_test.rb") |