Class: Mongoid::Generators::Base
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Mongoid::Generators::Base
- Defined in:
- lib/rails/generators/mongoid_generator.rb
Overview
:nodoc:
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
-
#module_namespacing(&block) ⇒ Object
This is only defined on Rails edge at the moment, so include here now as per: github.com/mongoid/mongoid/issues/744.
Class Method Details
.source_root ⇒ Object
9 10 11 12 |
# File 'lib/rails/generators/mongoid_generator.rb', line 9 def self.source_root @_mongoid_source_root ||= File.("../#{base_name}/#{generator_name}/templates", __FILE__) end |
Instance Method Details
#module_namespacing(&block) ⇒ Object
This is only defined on Rails edge at the moment, so include here now as per: github.com/mongoid/mongoid/issues/744
18 19 20 |
# File 'lib/rails/generators/mongoid_generator.rb', line 18 def module_namespacing(&block) yield if block end |