lib/rocket_job/config.rb in rocketjob-0.7.0 vs lib/rocket_job/config.rb in rocketjob-0.8.0
- old
+ new
@@ -51,14 +51,18 @@
# Replace the MongoMapper default mongo connection for holding jobs
def self.mongo_connection=(connection)
connection(connection)
Server.connection(connection)
Job.connection(connection)
+ Config.connection(connection)
+ DirmonEntry.connection(connection)
db_name = connection.db.name
set_database_name(db_name)
Server.set_database_name(db_name)
Job.set_database_name(db_name)
+ Config.set_database_name(db_name)
+ DirmonEntry.set_database_name(db_name)
end
# Use a separate Mongo connection for the Records and Results
# Allows the records and results to be stored in a separate Mongo database
# from the Jobs themselves.