diff options
Diffstat (limited to 'railties/lib/generators/test_unit/scaffold/scaffold_generator.rb')
-rw-r--r-- | railties/lib/generators/test_unit/scaffold/scaffold_generator.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/lib/generators/test_unit/scaffold/scaffold_generator.rb b/railties/lib/generators/test_unit/scaffold/scaffold_generator.rb index 7c73a23267..0f6255383e 100644 --- a/railties/lib/generators/test_unit/scaffold/scaffold_generator.rb +++ b/railties/lib/generators/test_unit/scaffold/scaffold_generator.rb @@ -4,6 +4,8 @@ module TestUnit module Generators class ScaffoldGenerator < Base include Rails::Generators::ControllerNamedBase + + class_option :singleton, :type => :boolean, :desc => "Supply to create a singleton controller" check_class_collision :suffix => "ControllerTest" def create_test_files |