jwood/tenacity — Issue #33: Problems with t_has_many 
Author: yeggeps
Created: 2011-11-22 09:40:10+00:00
State: open

When I follow this pattern:

```
wheel_1 = Wheel.create
wheel_2 = Wheel.create
wheel_3 = Wheel.create
wheels = [wheel_1, wheel_2, wheel_3]
car.wheels = wheels
car.save
```
Tenacity doesn't update the car_id in wheels. And if I try to access car.wheels I just get an empty array.
If I add the id manually to wheel_1 and then add it to the association collection the association will work.
However, it will not be persisted, if I restart my server/console the associations will be lost.

Seems to work flawless with t_has_one.

I tried to use the auto_save option, but i reckon it's not for this purpose?
I also tried to manually specify the foreign_key, but that didn't help either.

This was tested with a single model and these gems:

```
mongo (1.4.0)
mongoid (2.2.4)

bson (1.4.0)
bson_ext (1.4.0)

mysql2 (0.3.10)
activerecord (3.1.1)
```