Colin Law wrote:
> 2009/10/3 Denis Denis <[email protected]>:
> An Article could belong_to several models, so you could have
> @article.category and @article.magazine.  How would @article.parent
> know which 'parent' to use?
> 
> Colin

I totally agree, but it would be convenient to obtain an array of 
multiple parents.  Something like:

parents = @article.belongs_to
parents # => ["Magazine", "Category"]
-- 
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 [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-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to