Comparing version 0.0.18 to 0.0.19
// Generated by CoffeeScript 1.6.2 | ||
(function() { | ||
var async, outcome, toarray, | ||
var async, isa, outcome, toarray, | ||
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; | ||
@@ -12,2 +12,4 @@ | ||
isa = require("isa"); | ||
module.exports = (function() { | ||
@@ -131,3 +133,3 @@ /* | ||
_Class.prototype._mapPathPart = function(currentItem, options, paths, root) { | ||
var croute, _id; | ||
var croute, inh, inherit, _id; | ||
@@ -148,3 +150,10 @@ if (!currentItem) { | ||
} | ||
if (croute.inherit === true) { | ||
inherit = croute.inherit; | ||
inh = false; | ||
if (isa.array(inherit)) { | ||
inh = !!~inherit.indexOf(options.method.toLowerCase()); | ||
} else { | ||
inh = !!inherit; | ||
} | ||
if (inh) { | ||
paths.push(croute.collectionName); | ||
@@ -151,0 +160,0 @@ } else { |
{ | ||
"name": "linen", | ||
"version": "0.0.18", | ||
"version": "0.0.19", | ||
"description": "```javascript", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is not supported yet
51995
1219