Sat
Sep
8
obie's egregious one-liner of the day
def self.roll_the_dice
Hash[*Trait.find(:all).group_by(&:category).values.map(&:random).collect { |t| [t.category, t]}.flatten]
end