Class: Mongomatic::Generators::ConfigGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Mongomatic::Generators::ConfigGenerator
- Defined in:
- lib/rails/generators/mongomatic/config/config_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
9 10 11 |
# File 'lib/rails/generators/mongomatic/config/config_generator.rb', line 9 def self.source_root @_source_root ||= File.("../templates", __FILE__) end |
Instance Method Details
#create_config_file ⇒ Object
17 18 19 |
# File 'lib/rails/generators/mongomatic/config/config_generator.rb', line 17 def create_config_file template 'mongomatic.yml', Rails.root.join('config', 'mongomatic.yml') end |
#default ⇒ Object
13 14 15 |
# File 'lib/rails/generators/mongomatic/config/config_generator.rb', line 13 def default 'test' end |