Hi Bernerd, On Dec 3, 3:17 pm, "Bernerd Schaefer" <[EMAIL PROTECTED]> wrote: > > Role > > has 1, :user > > > > User > > belong_to :role > > user.role.create(params["user_role"])
Yeah, that won't really work because user.role would return a ManyToOne::Proxy object (in sam/dm-core) which doesn't have a #create method. We actually removed the ManyToOne::Proxy in dkubb/dm-core because once we specced all the behavior and refactored the internals we discovered that it was unnecessary to implement the entire spec. However, to handle your #create example we'd need to reestablish the Proxy object. In general though we're looking at all the Proxy objects and trying to slim them down and/or remove them when possible. Dan (dkubb) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "DataMapper" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/datamapper?hl=en -~----------~----~----~----~------~----~------~--~---
