Permalink
Browse files

move db requires into models, so they can be used easily from console

  • Loading branch information...
1 parent 2aaba35 commit 75630ca69e5bd5fe02c60423a04ede784769916f @afeld committed May 7, 2012
Showing with 2 additions and 5 deletions.
  1. +0 −2 config/environment.js
  2. +1 −0 models/repo.js
  3. +1 −0 models/user.js
  4. +0 −1 test/repo_test.js
  5. +0 −1 test/user_test.js
  6. +0 −1 worker.js
View
@@ -2,8 +2,6 @@ var express = require('express'),
everyauth = require('everyauth'),
User = require('../models/user');
-require('./db.js');
-
var app = express.createServer(
express.logger(),
View
@@ -1,3 +1,4 @@
+require('../config/db');
var mongoose = require('mongoose'),
exec = require('child_process').exec;
View
@@ -1,3 +1,4 @@
+require('../config/db');
var mongoose = require('mongoose'),
Repo = require('./repo'),
request = require('request'),
View
@@ -1,4 +1,3 @@
-require('../config/db');
var vows = require('vows'),
assert = require('assert'),
Repo = require('../models/repo');
View
@@ -1,4 +1,3 @@
-require('../config/db');
var vows = require('vows'),
assert = require('assert'),
nock = require('nock'),
View
@@ -1,4 +1,3 @@
-require('./config/db');
var User = require('./models/user');

0 comments on commit 75630ca

Please sign in to comment.