Class: Kss::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/kss/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#install_stepsObject



8
9
10
11
12
13
# File 'lib/generators/kss/install_generator.rb', line 8

def install_steps
  copy_file 'index.html.erb', 'app/views/kss/home/index.html.erb'
  copy_file 'styleguide.html.erb', 'app/views/kss/home/styleguide.html.erb'
  copy_file 'application.html.erb', 'app/views/layouts/kss/application.html.erb'
  route "mount Kss::Engine => '/kss' if Rails.env.development?"
end