sxross/MotionModel — pull request #8 by boberetezeke (2012-10-28 03:26:37+00:00)
Title: This fixes a problem with accessing through belongs_to relation

it "allows a child to back-reference its parent" do
t = Task.create(:name => "Walk the Dog")
t.assignees.create(:assignee_name => "Rihanna")
Assignee.first.task.name.should == "Walk the Dog"
end

only works because all the id's start at 1. If you modify the
model#delete_all to reset the next_id to a random value, then
that spec fails.

I am not sure that this is how the fix should be done, but I
am pretty sure of the fix.