123456789_123456789_123456789_123456789_123456789_

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
  • Object
Defined in: lib/rails/generators/mongoid_generator.rb

Overview

Base generator class for adding ::Mongoid to ::Rails applications.

Class Method Summary

Class Method Details

.source_rootString

Returns the path to the templates directory.

Returns:

[ GitHub ]

  
# File 'lib/rails/generators/mongoid_generator.rb', line 16

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