Sha256: d530659f4c9a0722848d6c29252e373f5b4a7aab19636f10a02d26d517467af9
Contents?: true
Size: 464 Bytes
Versions: 1
Compression:
Stored size: 464 Bytes
Contents
class MongoInitializerGenerator < Rails::Generator::Base attr :file_name def initialize(runtime_args, runtime_options = {}) super @file_name = @args.first || 'default' end def manifest record do |m| m.directory 'config' m.directory 'config/initializers' m.template 'database.yml', "config/database.yml", :collision => :force m.template 'initializer.rb', "config/initializers/mongomapper.rb" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mongo_mapper_generators-1.0.3 | rails_generators/mongo_initializer/mongo_initializer_generator.rb |