metabahn/farmer_john — Issue #4: Associations
Author: bryanp
Created: 2011-10-17 19:24:35+00:00
State: open
Labels: Feature

Two objects can be associated by using the associated object's index, or an instance of the object. For example, this associates the `Comment` at index `0` in the current dataset with the `Post`:

Post.seed({
:comments => [0]
})

However, this should also work:

Post.seed({
:comments => [Comment.seed]
})