Fixed loading of avatar.

This commit is contained in:
Martin Edenhofer 2014-07-22 00:43:58 +02:00
parent 29a28d838c
commit d3eb5873ac

View file

@ -575,7 +575,7 @@ returns
hash = Digest::MD5.hexdigest( response.body ) hash = Digest::MD5.hexdigest( response.body )
# check if image has changed # check if image has changed
return if self.image != hash return if self.image == hash
# save new image # save new image
self.update_column( :image, hash ) self.update_column( :image, hash )