Class: Mongomatic::Generators::Base

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

Direct Known Subclasses

ModelGenerator

Class Method Summary collapse

Class Method Details

.source_rootObject



7
8
9
# File 'lib/rails/generators/mongomatic_generator.rb', line 7

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