Skip to content

Commit 7e588a0

Browse files
committed
Fixes autoFetch being discarded in Model.get options (closes #266)
1 parent 1a4067d commit 7e588a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Model.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,8 @@ function Model(opts) {
285285
}, function (cb) {
286286
return createInstance(data[0], {
287287
uid : uid,
288-
autoSave : opts.autoSave,
289-
autoFetch : (options.autoFetchLimit === 0 ? false : opts.autoFetch),
288+
autoSave : options.autoSave,
289+
autoFetch : (options.autoFetchLimit === 0 ? false : options.autoFetch),
290290
autoFetchLimit : options.autoFetchLimit,
291291
cascadeRemove : options.cascadeRemove
292292
}, cb);

0 commit comments

Comments
 (0)