Downcased user or email search for avatar_icon.

Signed-off-by: Rubén Dávila <rdavila84@gmail.com>
This commit is contained in:
Stefan Kahlhöfer 2015-12-02 07:56:34 +00:00 committed by Rubén Dávila
parent 3a227b5abb
commit 41c74cec09

View file

@ -72,7 +72,7 @@ module ApplicationHelper
if user_or_email.is_a?(User)
user = user_or_email
else
user = User.find_by(email: user_or_email)
user = User.find_by(email: user_or_email.downcase)
end
if user