
Associations between namespaced models should not require :class_name
Reported by Dan Kubb (dkubb) | June 23rd, 2008 @ 07:35 PM
This spec outlines the problem:
http://github.com/sam/dm-core/tr...
It should be possible to remove the :class_name option here and have the Parent constant found relative to the Child constant. Ruby should be able to do this, but the find_const method we added to Object is too naïve to know about namespaced models.
Comments and changes to this ticket
-
-
Sam Smoot July 1st, 2008 @ 10:21 AM
- State changed from new to open
- Tag set to bug, models, namespaced
Should be resolved in the latest Extlib::Module::find_const. I need to double-check tho'.
-
Bernerd Schaefer July 30th, 2008 @ 03:38 PM
- State changed from open to resolved
I just made sure (dae08c0) that you don't need to specify :class_names for namespaced models.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »