Class: Apit::Generators::LayoutGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Apit::Generators::LayoutGenerator
- Defined in:
- lib/generators/apit/layout_generator.rb
Instance Method Summary collapse
Instance Method Details
#generate_layout ⇒ Object
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 .stylesheet? template "layout.html.erb", "app/views/layouts/#{file_name}.html.erb" end |