diff options
author | Stefan Kahlhöfer <stefan-business@kahlhoefers.de> | 2015-12-02 10:56:34 +0300 |
---|---|---|
committer | Rubén Dávila <rdavila84@gmail.com> | 2015-12-29 02:13:50 +0300 |
commit | 41c74cec09af146ed7fdb4778dd72fe578eb1407 (patch) | |
tree | 8a990279a46a1de914477ac116521ead65d9916f /app/helpers/application_helper.rb | |
parent | 3a227b5abb0c794e95dd9153e3616c5d81aa06f8 (diff) |
Downcased user or email search for avatar_icon.
Signed-off-by: Rubén Dávila <rdavila84@gmail.com>
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r-- | app/helpers/application_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 0b00b9a0702..f7f7a1a02d3 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -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 |