Class: Mongoid::Generators::Base
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Rails::Generators::NamedBase
|
|
Instance Chain:
self,
Rails::Generators::NamedBase
|
|
Inherits: |
Rails::Generators::NamedBase
|
Defined in: | lib/rails/generators/mongoid_generator.rb |
Overview
Class Method Summary
-
.source_root ⇒ String
Returns the path to the templates directory.
Class Method Details
.source_root ⇒ String
Returns the path to the templates directory.
# File 'lib/rails/generators/mongoid_generator.rb', line 16
def self.source_root @_mongoid_source_root ||= File. ("../#{base_name}/#{generator_name}/templates", __FILE__) end