sequelize/sequelize — pull request #2286 by craigbeck (2014-09-16 02:09:48+00:00)
Title: add if to check for naked where clause to set scope

* fix for #2228
* previously would not scope anything when using documented form

{ where: { someAttr: ‘value’ } }