sxross/MotionModel — pull request #69 by paulsturgess (2013-07-04 10:10:17+00:00)
Title: Allow queries to be chained on has_many associations

Calling the `has_many` relation on a class returns an instance of `RelationArray`.

I've updated `RelationArray` so it responds to `where(*args)` to allow additional queries to be chained onto the association.

Hopefully the test demonstrates this clearly.