Class: Mongoid::Generators::Base
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Mongoid::Generators::Base
- Defined in:
- lib/rails/generators/mongoid_generator.rb
Overview
Base generator class for adding Mongoid to Rails applications.
Direct Known Subclasses
Class Method Summary collapse
-
.source_root ⇒ String
Returns the path to the templates directory.
Class Method Details
.source_root ⇒ String
Returns the path to the templates directory.
16 17 18 19 |
# File 'lib/rails/generators/mongoid_generator.rb', line 16 def self.source_root @_mongoid_source_root ||= File.("../#{base_name}/#{generator_name}/templates", __FILE__) end |