Class: Rails::Generators::ScaffoldGenerator

Inherits:
ResourceGenerator show all
Defined in:
lib/rails/generators/rails/scaffold/scaffold_generator.rb

Overview

:nodoc:

Constant Summary

Constants included from ModelHelpers

ModelHelpers::IRREGULAR_MODEL_NAME_WARN_MESSAGE, ModelHelpers::PLURAL_MODEL_NAME_WARN_MESSAGE

Instance Method Summary collapse

Methods included from ResourceHelpers

included, #initialize

Methods included from ModelHelpers

included, #initialize

Methods inherited from NamedBase

#initialize

Methods inherited from Base

base_root, class_option, default_source_root, desc, exit_on_failure?, hide!, hook_for, inherited, namespace, remove_hook_for, source_root

Methods included from Actions

#add_source, #environment, #gem, #gem_group, #generate, #git, #github, #initialize, #initializer, #lib, #rails_command, #rake, #rakefile, #readme, #route, #vendor

Instance Method Details

#handle_skipObject



18
19
20
21
# File 'lib/rails/generators/rails/scaffold/scaffold_generator.rb', line 18

def handle_skip
  @options = @options.merge(stylesheets: false) unless options[:assets]
  @options = @options.merge(stylesheet_engine: false) unless options[:stylesheets] && options[:scaffold_stylesheet]
end