andreasronge/neo4j — Issue #160: declared relationships with inheritance load conflict 
Author: pehrlich
Created: 2012-02-18 04:08:40+00:00
State: open

Class A
has_one(:moon).from(B, :spot)

Class B < A

We now have a circular dependency.

This could be solved by storing @target_class as a string rather than a class (as mongoid does). Internally, @target_class is only called in three places: to build, create, and find relationship_class (via declared rels).

Thoughts?

I'll submit a pull request soon so you can see, but I've been having trouble installing dependencies for the specs.