Class: MongoModel::Generators::ConfigGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/rails/generators/mongo_model/config/config_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details


14
15
16
# File 'lib/rails/generators/mongo_model/config/config_generator.rb', line 14

def self.banner
  "rails generate mongo_model:#{generator_name} #{self.arguments.map{ |a| a.usage }.join(' ')} [options]"
end

Instance Method Details

#create_filesObject


10
11
12
# File 'lib/rails/generators/mongo_model/config/config_generator.rb', line 10

def create_files
  template "mongomodel.yml" , "config/mongomodel.yml"
end