Skip to content

Commit

Permalink
Make Model.get respect Model autoFetch default value (#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
dresende committed Aug 2, 2013
1 parent 7302c7c commit 7035b7a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Model.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,9 @@ function Model(opts) {
conditions[opts.id[i]] = ids[i];
}

if (!options.hasOwnProperty("autoFetch")) {
options.autoFetch = opts.autoFetch;
}
if (!options.hasOwnProperty("autoFetchLimit")) {
options.autoFetchLimit = opts.autoFetchLimit;
}
Expand Down

0 comments on commit 7035b7a

Please sign in to comment.