Shopify/batman — pull request #570 by lfjallstrom (2012-10-25 11:47:14+00:00)
Title: Polymorphic has many associations can be polymorphic in the both ends

Hi,

Here is the changes I implemented to get polymorphic has many associations to be polymorphic in the 'hasMany' end of the association. Previously only the 'belongsTo' end was polymorphic.

More details in this discussion:
https://groups.google.com/d/topic/batmanjs/SudYoVhxJaY/discussion