Class: Teleport::Bootstrap::NavbarGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/teleport/bootstrap/navbar.rb

Instance Method Summary collapse

Instance Method Details

#addObject



6
7
8
9
# File 'lib/generators/teleport/bootstrap/navbar.rb', line 6

def add
  @path = ask 'Path for _navbar.haml', :bold, default: 'app/views/layouts/_navbar.haml'
  copy_file '_navbar.haml', @path
end