Class: Mongoid::Generators::Base

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
build/mongoid-master/lib/rails/generators/mongoid_generator.rb

Direct Known Subclasses

ModelGenerator

Class Method Summary collapse

Class Method Details

.source_rootObject



11
12
13
14
# File 'build/mongoid-master/lib/rails/generators/mongoid_generator.rb', line 11

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