SFEley / candy

Transparent persistence for MongoDB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Embedded objects should return their parents' collections

SFEley opened this issue · comments

> t = Thingy.new
> t.whatsit = Widget.new
>t.whatsit.collection   # => 'Widget'

This is wrong. The collection should be Thingy.