Skip to content

Commit

Permalink
Iridium should still pass documents through the preprocessing framewo…
Browse files Browse the repository at this point in the history
…rk when { wrap: false }
  • Loading branch information
notheotherben committed Jan 11, 2014
1 parent 50c153e commit b2d59e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Model.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ Model.prototype.onRetrieved = function(conditions, results, callback, wrapper, o

var cacheDoc = _.cloneDeep(target);

var wrapped = options.wrap ? wrapper(target) : target;
var wrapped = options.wrap ? wrapper(target) : this.fromSource(target);

doHook(this.options.hooks.ready, wrapped, (function(err) {
if(err) return done(err);
Expand Down

0 comments on commit b2d59e7

Please sign in to comment.