pyromaniac/mongoid_orderable — pull request #22 by dsci (2014-03-18 15:00:43+00:00)
Title: Add lazy support for scopes with different foreign key names

I slightly adjust the scope assignment if a belongs_to relationship is used that differs from the naming convention. I think it's nicer to use the relationship name instead of the key field name.