Skip to content

Commit

Permalink
Add missing fetch() in Model#where
Browse files Browse the repository at this point in the history
Thanks to @tkrotoff for logging this, addresses #1240
  • Loading branch information
ebramanti committed May 31, 2016
1 parent 9e47ab9 commit 1182485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model.js
Expand Up @@ -1186,7 +1186,7 @@ const BookshelfModel = ModelBase.extend({
* // or
* model.where('favorite_color', 'red').fetch().then(function() { //...
* // or
* model.where({favorite_color: 'red', shoe_size: 12}).then(function() { //...
* model.where({favorite_color: 'red', shoe_size: 12}).fetch().then(function() { //...
*
* @method Model#where
* @param {Object|...string} method
Expand Down

0 comments on commit 1182485

Please sign in to comment.