Displaying 1 result from an estimated 1 matches for "we_love_the_queen_enterprises".
2007 Jun 18
2
extending Array class with a method
...business, and I''d
like to be able to do something like
great_white_north = Country.find_by_name(''Canada'')
canuck_enterprises = great_white_north.businesses
countries = Country.find_by_name([''Canada'',''UK'',''Australia'')
we_love_the_queen_enterprises = countries.businesses
So I need to somehow extend the Array class I think. Tips?
Ben
--~--~---------~--~----~------------~-------~--~----~
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 rubyo...