lib/mongoid_seeder.rb in mongoid_seeder-0.0.2 vs lib/mongoid_seeder.rb in mongoid_seeder-0.0.3
- old
+ new
@@ -32,10 +32,10 @@
mongorestore = Mongoid::Shell::Commands::Mongorestore.new(options)
system mongorestore.to_s
end
def self.db_path
- File.expand_path("db/seed_data", Dir.pwd)
+ Config.seed_dir
end
def self.dump
mongodump = Mongoid::Shell::Commands::Mongodump.new( out: db_path)
system mongodump.to_s