FogBugz #118: catch a users email.

This commit is contained in:
Roland Jesse 2012-01-23 23:53:18 +01:00
parent 1e7d28d187
commit e62beb5a10

View file

@ -53,7 +53,7 @@ class BirthdaysController < ApplicationController
def group_birthdays_by_email(birthday_contacts)
ret = Hash.new
birthday_contacts.each do |contact|
email = contact.user.email
email = User.find(contact.user_id).email
if ret[email].nil? then # haven't seen this email, yet
a = Array.new
a << contact