diff options
Diffstat (limited to 'railties/lib/generators/rails')
3 files changed, 3 insertions, 4 deletions
diff --git a/railties/lib/generators/rails/mailer/mailer_generator.rb b/railties/lib/generators/rails/mailer/mailer_generator.rb index 4c77df89ab..15140f2127 100644 --- a/railties/lib/generators/rails/mailer/mailer_generator.rb +++ b/railties/lib/generators/rails/mailer/mailer_generator.rb @@ -11,8 +11,7 @@ module Rails template "mailer.rb", File.join('app/models', class_path, "#{file_name}.rb") end - add_and_invoke_template_engine_option! - add_and_invoke_test_framework_option! + invoke_for :template_engine, :test_framework end end end diff --git a/railties/lib/generators/rails/observer/observer_generator.rb b/railties/lib/generators/rails/observer/observer_generator.rb index e5e1be39dc..205ffc8064 100644 --- a/railties/lib/generators/rails/observer/observer_generator.rb +++ b/railties/lib/generators/rails/observer/observer_generator.rb @@ -9,7 +9,7 @@ module Rails template 'observer.rb', File.join('app/models', class_path, "#{file_name}_observer.rb") end - add_and_invoke_test_framework_option! + invoke_for :test_framework end end end diff --git a/railties/lib/generators/rails/plugin/plugin_generator.rb b/railties/lib/generators/rails/plugin/plugin_generator.rb index 4dbb3bfc0d..c3042afa94 100644 --- a/railties/lib/generators/rails/plugin/plugin_generator.rb +++ b/railties/lib/generators/rails/plugin/plugin_generator.rb @@ -27,7 +27,7 @@ module Rails directory 'lib' end - add_and_invoke_test_framework_option! + invoke_for :test_framework def create_tasks_files return unless options[:with_tasks] |