holman/play — Issue #29: null reference
Author: keroger2k
Created: 2011-11-11 20:51:26+00:00
State: open

mainly my fault, but if your public profile isn't filled out, OAuth will put a user entry into the db with null for everything except id and login. Applications works fine but when you load the profile get gravatar fails since email is nil.

user.rb

>
def gravatar_id
Digest::MD5.hexdigest(email)
end