search for: eachtasks

Displaying 1 result from an estimated 1 matches for "eachtasks".

Did you mean: each_task
2011 Dec 22
0
mongodb Map/reduce grouping
...e += orgTasks.score.to_i end $wins["first"]["id"]= @challenge.user_id $wins["first"]["score"]= aTotalScore aTotalScore = 0 @challenge.child_challenges.each do |aChildChallenge| aChildChallenge.tasks.each_with_index do |eachTasks,index| aTotalScore += eachTasks.score.to_i end #raise aTotalScore.inspect if aTotalScore > $wins["first"]["score"] #raise "first less" whoWinning aTotalScore, $wins["first"]["scor...