diff options
author | Jan-Gerd Tenberge <janten@gmail.com> | 2015-09-26 21:51:02 +0200 |
---|---|---|
committer | Jan-Gerd Tenberge <janten@gmail.com> | 2015-09-26 21:51:02 +0200 |
commit | 8d620e39c967739f99bd175449864524f05b915c (patch) | |
tree | cf499d8316c30895af7de0b64ee4eff2f1acffab /app/helpers/application_helper.rb | |
parent | f93177c6a3bee4c02f6a9a18278db13dd1c30c35 (diff) | |
download | gitlab-ce-8d620e39c967739f99bd175449864524f05b915c.tar.gz |
Add scale argument in user class
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r-- | app/helpers/application_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 162dae1ed32..056ffd278f6 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -68,13 +68,13 @@ module ApplicationHelper end end - def avatar_icon(user_email = '', size = nil) + def avatar_icon(user_email = '', size = nil, scale = 2) user = User.find_by(email: user_email) if user user.avatar_url(size) || default_avatar else - gravatar_icon(user_email, size) + gravatar_icon(user_email, size, scale) end end |