Hey list,

I was wondering on the definitive approach of setting attributes on  
the join model of a has_many :through relation. After some googling, I  
didn't find a "shortcut" approach to it, so I started tinkering, and  
thinking.
Imagine users, groups, and memberships. Would something like this be a  
good approach?

group.members << :user => @user, :role => Role.admin

If so, I could whip up a patch. If not, please enlighten me as to what  
would be a good way to assign those properties.

cheers,
bartz


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" 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/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to