Class: Mongoid::Generators::Base

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

Overview

:nodoc:

Direct Known Subclasses

ModelGenerator

Class Method Summary collapse

Class Method Details

.source_rootObject



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

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