var r = resourcer.defineResource(function () { this.use('database'); }); // Works r.create({ _id: '99', age: 30, hair: 'red'}, this.callback); // Doesn't Work r.create({ age: 30, hair: 'red'}, this.callback);
var r = resourcer.defineResource(function () {
this.use('database');
});
// Works
r.create({ _id: '99', age: 30, hair: 'red'}, this.callback);
// Doesn't Work
r.create({ age: 30, hair: 'red'}, this.callback);