Class: BootstrapperGenerator

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



4
5
6
# File 'lib/generators/bootstrapper_generator.rb', line 4

def self.source_root
  @source_root ||= File.join(File.dirname(__FILE__), 'templates')
end

Instance Method Details

#copy_filesObject



8
9
10
# File 'lib/generators/bootstrapper_generator.rb', line 8

def copy_files
  template 'bootstrap.erb', 'db/bootstrap.rb'
end