Sha256: 9ed61fc0afe29e4ad847c6e8c3ff0d5de66d26a883eaf3ec7af434d55b99d1e0
Contents?: true
Size: 460 Bytes
Versions: 1
Compression:
Stored size: 460 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.file '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.2 | rails_generators/mongo_initializer/mongo_initializer_generator.rb |