diff options
Diffstat (limited to 'railties/lib/rails/generators/rails/scaffold/scaffold_generator.rb')
-rw-r--r-- | railties/lib/rails/generators/rails/scaffold/scaffold_generator.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/railties/lib/rails/generators/rails/scaffold/scaffold_generator.rb b/railties/lib/rails/generators/rails/scaffold/scaffold_generator.rb index dd636ed3cf..e89789e72b 100644 --- a/railties/lib/rails/generators/rails/scaffold/scaffold_generator.rb +++ b/railties/lib/rails/generators/rails/scaffold/scaffold_generator.rb @@ -8,14 +8,12 @@ module Rails class_option :stylesheets, type: :boolean, desc: "Generate Stylesheets" class_option :stylesheet_engine, desc: "Engine for Stylesheets" - - class_option :html, type: :boolean, default: true, - desc: "Generate a scaffold with HTML output" + class_option :assets, type: :boolean + class_option :resource_route, type: :boolean def handle_skip - if !options[:html] || !options[:stylesheets] - @options = @options.merge(stylesheet_engine: false) - end + @options = @options.merge(stylesheets: false) unless options[:assets] + @options = @options.merge(stylesheet_engine: false) unless options[:stylesheets] end hook_for :scaffold_controller, required: true |