Forums » General Forum »
belongs_to vs. has_one
Added by Eugene Gimelberg 71 days ago
Hey Andy,
Great work on classy_inheritance. Question...I am using depends_on, non polymorphically,
and I need to actually define the relationship to be a has_one rather than a belongs_to.
It seems that currently I am not able to do this unless I introduce polymorphism.
Is there any reason you know of that would prevent a has_one relationship from working
without polymorphism?
Thanks!
Euge
Replies
RE: belongs_to vs. has_one - Added by Andrew Stone 67 days ago
Sorry for the delay...very busy week. To me, the depends_on functionality implies a belongs_to relationship. It just seemed natural. I haven't actually put much thought into a has_one relationship. I will give it some thought over the weekend though.
Thanks for using classy-inheritance!
-andy