Permalink
Browse files

really bad boo boo

  • Loading branch information...
1 parent 6ed6777 commit a27454a84a03f8e282fb00f2b7b8fb3f8a056edb @mattinsler committed Jun 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 caboose-model/lib/query.coffee
@@ -3,7 +3,7 @@ _ = require 'underscore'
module.exports = class Query
constructor: (@model, @query) ->
@query ?= {}
- @query._id = new Query.ObjectID(@query._id) if @query._id? and typeof @query._id is 'string' and /[0-9a-z]{24}/i.test(@query._id)
+ @query._id = new @model.ObjectID(@query._id) if @query._id? and typeof @query._id is 'string' and /[0-9a-z]{24}/i.test(@query._id)
@options = {}
__error__: (promise, err) ->

0 comments on commit a27454a

Please sign in to comment.