# File app/models/attendance.rb, line 51 def self.totalized_for_conference(conf) totals = {} people = {} self.for_conference(conf).each do |att| people[att.person] ||= 0 people[att.person] += 1 end people.keys.each do |att| totals[people[att]] ||= [] totals[people[att]] << att end totals end