Class: Bear::Generators::LayoutGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Bear::Generators::LayoutGenerator
- Defined in:
- lib/bear/generators/layout_generator.rb
Instance Method Summary collapse
Instance Method Details
#touch_layout_file ⇒ Object
12 13 14 15 |
# File 'lib/bear/generators/layout_generator.rb', line 12 def touch_layout_file ext = (.slim?) ? "slim" : "erb" template "layout.html.#{ext}", "app/views/layouts/#{layout}.html.#{ext}" end |