lib/whimsy/asf/mail.rb in whimsy-asf-0.0.73 vs lib/whimsy/asf/mail.rb in whimsy-asf-0.0.74

- old
+ new

@@ -6,11 +6,11 @@ return @list if @list list = Hash.new # load info from LDAP - ASF::Person.preload(['mail', 'asf-altEmail']) - ASF::Person.collection.each do |name, person| + people = ASF::Person.preload(['mail', 'asf-altEmail']) + people.each do |name, person| (person.mail+person.alt_email).each do |mail| list[mail.downcase] = person end end