Class: Rails::Generators::ScaffoldGenerator
- Inherits:
-
ResourceGenerator
- Object
- Thor::Group
- Base
- NamedBase
- ModelGenerator
- ResourceGenerator
- Rails::Generators::ScaffoldGenerator
- Defined in:
- lib/rails/generators/rails/scaffold/scaffold_generator.rb
Overview
:nodoc:
Constant Summary
Constants included from ModelHelpers
ModelHelpers::PLURAL_MODEL_NAME_WARN_MESSAGE
Instance Method Summary collapse
Methods included from ResourceHelpers
Methods included from ModelHelpers
Methods inherited from NamedBase
Methods inherited from Base
base_root, class_option, default_source_root, desc, hide!, hook_for, inherited, namespace, remove_hook_for, source_root
Methods included from Actions
#add_source, #after_bundle, #capify!, #environment, #gem, #gem_group, #generate, #git, #initialize, #initializer, #lib, #rails_command, #rake, #rakefile, #readme, #route, #vendor
Instance Method Details
#handle_skip ⇒ Object
16 17 18 19 20 |
# File 'lib/rails/generators/rails/scaffold/scaffold_generator.rb', line 16 def handle_skip @options = @options.merge(stylesheets: false) unless [:assets] @options = @options.merge(stylesheet_engine: false) unless [:stylesheets] && [:scaffold_stylesheet] @options = @options.merge(system_tests: false) if [:api] end |