Thomas Allen wrote:> Is there a simple way to flatten 1:1 models so that the methods in one
> are accessible from another? This attempt results in a stack depth
> exception for any call to one of the explicitly defined methods:
If you wanted all the attributes on one model, why the heck did you
break them apart in the first place?
I suppose you could write accessors to access the Contact attributes
through User''s association, but the whole design seem completely silly
to me. Just get rid of Contact and put it''s attributes on User and be
done with it. Or, just access Contact''s attributes though the
association, like the system is designed to do.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.