summaryrefslogtreecommitdiff
path: root/app/helpers/application_helper.rb
diff options
context:
space:
mode:
authorJan-Gerd Tenberge <janten@gmail.com>2015-09-26 21:51:02 +0200
committerJan-Gerd Tenberge <janten@gmail.com>2015-09-26 21:51:02 +0200
commit8d620e39c967739f99bd175449864524f05b915c (patch)
treecf499d8316c30895af7de0b64ee4eff2f1acffab /app/helpers/application_helper.rb
parentf93177c6a3bee4c02f6a9a18278db13dd1c30c35 (diff)
downloadgitlab-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.rb4
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