Class: Rails::Generators::StylesheetsGenerator

Inherits:
Base
  • Object
show all
Defined in:
lib/rails/generators/rails/stylesheets/stylesheets_generator.rb

Instance Method Summary collapse

Methods inherited from Base

base_root, class_option, default_source_root, desc, hook_for, inherited, namespace, remove_hook_for, source_root

Methods included from Actions

#add_source, #capify!, #environment, #freeze!, #gem, #generate, #git, #initializer, #lib, #plugin, #rake, #rakefile, #readme, #route, #vendor

Instance Method Details

#copy_stylesheets_fileObject


4
5
6
# File 'lib/rails/generators/rails/stylesheets/stylesheets_generator.rb', line 4

def copy_stylesheets_file
  template "scaffold.css", "public/stylesheets/scaffold.css" if behavior == :invoke
end