Skip to content

Instantly share code, notes, and snippets.

@moretea
Created June 5, 2010 10:49
Show Gist options
  • Save moretea/426531 to your computer and use it in GitHub Desktop.
Save moretea/426531 to your computer and use it in GitHub Desktop.
CarRim.with_serie(CarSerie.first).count :group => "car_rim_variants.id", :include => :car_rim_variants
=> #<OrderedHash {1890=>1, 1700=>1, 1206=>1, 1624=>1, 1282=>1, 1358=>1, 1862=>1, 1748=>1, 1102=>1, 1387=>1, 1910=>1, 1758=>1, 1207=>1, 1283=>1, 1359=>1, 979=>1, 1606=>1, 1749=>1, 1407=>1, 1255=>1, 1797=>1, 1759=>1, 1664=>1, 1626=>1, 999=>1, 1284=>1, 1769=>1, 1256=>1, 1408=>1, 1446=>1, 1893=>1, 1627=>1, 1209=>1, 1247=>1, 981=>1, 1380=>1, 1922=>1, 1827=>1, 1257=>1, 1894=>1, 1875=>1, 1837=>1, 1628=>1, 1362=>1, 982=>1, 1438=>1, 1096=>1, 1381=>1, 1210=>1, 1828=>1, 1695=>1, 1258=>1, 1448=>1, 1277=>1, 1895=>1, 945=>1, 1382=>1, 1211=>1, 1249=>1, 1886=>1, 1696=>1, 955=>1, 1411=>1, 1278=>1, 1259=>1, 1212=>1, 1250=>1, 956=>1, 1279=>1, 937=>1, 1431=>1, 1260=>1, 1897=>1, 1631=>1, 928=>1, 966=>1, 1213=>1, 1365=>1, 1280=>1, 1109=>1, 1223=>1, 1432=>1, 1622=>1, 967=>1, 1100=>1, 929=>1, 1908=>1, 1889=>1, 1851=>1, 1604=>1, 1585=>1, 1281=>1, 1899=>1, 1823=>1, 1671=>1, 1101=>1, 930=>1, 1595=>1, 1215=>1}>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment