Class: Toystore::Generators::Base

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/toystore.rb

Direct Known Subclasses

ModelGenerator

Class Method Summary collapse

Class Method Details

.source_rootObject



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

def self.source_root
  @_toystore_source_root ||= File.expand_path("../#{base_name}/#{generator_name}/templates", __FILE__)
end