Skip to content

Commit

Permalink
use immodel-base
Browse files Browse the repository at this point in the history
  • Loading branch information
ashaffer committed Mar 7, 2015
1 parent 168a8d1 commit 8277bcc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = function(mongoUrl) {
var db = monk(mongoUrl);

return function(model) {
require('mongo-id')(model);
require('immodel-mongo-id')(model);

model.collection = function(name) {
return this.use(function(model) {
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@
},
"homepage": "https://github.com/immodel/mongo-sync",
"dependencies": {
"immodel": "^0.1.1",
"immodel-base": "git://github.com/immodel/base",
"immodel-mongo-id": "git://github.com/immodel/mongo-id",
"monk": "^1.0.0",
"mquery": "^1.3.0",
"objectid": "^3.2.0",
"immodel": "^0.1.1"
"objectid": "^3.2.0"
},
"devDependencies": {
"mocha": "^2.1.0",
Expand Down
5 changes: 2 additions & 3 deletions test/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
var assert = require('assert');
var model = require('immodel').bootstrap();

require('mongo-id')(model);
var model = require('immodel')
.use(require('immodel-base'));

var Collection = model
.use(require('../')('localhost/test'))
Expand Down

0 comments on commit 8277bcc

Please sign in to comment.