Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Brandl <abrandl@gitlab.com>2018-02-09 15:28:59 +0300
committerAndreas Brandl <abrandl@gitlab.com>2018-02-13 20:04:52 +0300
commitc4cf7220146f74196ef20b12cf0db3502649ac06 (patch)
tree720b596fee3c9a1a4e02158932aa952bfd360b0b /app/helpers/application_helper.rb
parentc641dff09422522b7de651fc77292d89f137746b (diff)
Remove generic #avatar_icon helper.
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 77c86be4714..a889decab26 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -68,14 +68,6 @@ module ApplicationHelper
end
end
- def avatar_icon(user_or_email = nil, size = nil, scale = 2, only_path: true)
- if user_or_email.is_a?(User)
- avatar_icon_for_user(user_or_email, size, scale, only_path: only_path)
- else
- avatar_icon_for_email(user_or_email, size, scale, only_path: only_path)
- end
- end
-
def avatar_icon_for_email(email = nil, size = nil, scale = 2, only_path: true)
user = User.find_by_any_email(email.try(:downcase))
if user