sequelize/sequelize — pull request #1600 by janmeier (2014-04-06 19:56:38+00:00)
Title: Association scopes

The same functionality as scopes and defaultScope on DAO has been added to associations.

It's called slightly differently, since i don't think it makes much sense to call something like `associationScope` before getting associations.

This feature should be very useful for #1307 (polymorphic associations)