Skip to content

Commit

Permalink
Allow mongodb-wrapper to be installed globally and locally
Browse files Browse the repository at this point in the history
  • Loading branch information
larzconwell committed Jul 25, 2012
1 parent 26600c5 commit c31143e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/model/adapters/mongo.js
@@ -1,5 +1,5 @@
var path = require('path')
, mongo = require(path.join(process.cwd(), 'node_modules/mongodb-wrapper'));
, mongo = require(path.join('mongodb-wrapper'));

var Mongo = function (config) {
if (!geddy.config.db.mongo) throw "No Mongo config defined.";
Expand Down
6 changes: 4 additions & 2 deletions lib/template/engines/ejs.js
Expand Up @@ -131,10 +131,12 @@ Template.prototype = new function () {

this.generateSource = function () {
var matches = this.parseTemplateText()
, line;
, line
, i;

if(matches) {
for(var i in matches) {
i = -1
while(++i <= matches.length) {
line = matches[i];

if(line) this.scanLine(line);
Expand Down

0 comments on commit c31143e

Please sign in to comment.