summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-01-22 11:04:56 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-01-22 11:04:56 -0800
commit4d56c359d343ba3a1117dfc06034820a415450d3 (patch)
tree40232c2176dc8f46e7ab96de0bd45c1bc2934173 /app/helpers
parent1018cbdc803d56e6cae385aee97aa04752d3e3fb (diff)
parenta3f645ef51ec12ce93934b4ddb11313613d8c451 (diff)
downloadgitlab-ce-4d56c359d343ba3a1117dfc06034820a415450d3.tar.gz
Merge pull request #6075 from skv-headless/remove_deprecated_finders
Remove deprecated finders
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/application_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 0db43fa1809..e60cba2bb2b 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -50,7 +50,7 @@ module ApplicationHelper
end
def avatar_icon(user_email = '', size = nil)
- user = User.find_by_email(user_email)
+ user = User.find_by(email: user_email)
if user && user.avatar.present?
user.avatar.url
else