Skip to content
This repository has been archived by the owner on May 9, 2018. It is now read-only.

Commit

Permalink
Pulling in flatiron#220
Browse files Browse the repository at this point in the history
  • Loading branch information
ndrut committed Aug 5, 2013
2 parents ee212ae + e45476f commit 514fc17
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/cradle/database/views.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ Database.prototype.list = function (path, options) {
}
}

if (path.length < 4) {
path = ['_design', path[0], '_list', path[1], path[2]].map(querystring.escape).join('/');
} else {
path = ['_design', path[0], '_list', path[1], path[2], path[3]].map(querystring.escape).join('/');
}

this._getOrPostView(
path,
{ query: options, cache: cache, raw: true },
Expand Down

0 comments on commit 514fc17

Please sign in to comment.