Class: Apit::Generators::LayoutGenerator

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

Instance Method Summary collapse

Instance Method Details

#generate_layoutObject



8
9
10
11
# File 'lib/generators/apit/layout_generator.rb', line 8

def generate_layout
  copy_file "stylesheet.css", "public/stylesheets/#{file_name}.css" if options.stylesheet?
  template "layout.html.erb", "app/views/layouts/#{file_name}.html.erb"
end