If you have two classes Apple and Oranges that are in HABTM, doing the following fails.
Apple.each do |a| a.oranges.each do |o| p "Apple #{a.id} owns Orange #{o.id}" end end
The oranges that each apple owns is not displayed correctly.
Created by Phil Wang - 2009-07-22 03:33:11 UTC
Original Lighthouse ticket: http://datamapper.lighthouseapp.com/projects/20609/tickets/986
该提问来源于开源项目:datamapper/dm-core