Commit ad2f0fe9 authored by Rémy Coutable's avatar Rémy Coutable

Fix GeoAwareAvatar#avatar_url signature

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 2c27ee95
......@@ -4,7 +4,7 @@ module EE
# This module is intended to encapsulate Geo-specific logic
# and be **prepended** in the `Group`, `User`, `Project` models
module GeoAwareAvatar
def avatar_url(size = nil, scale = 2)
def avatar_url(**args)
if ::Gitlab::Geo.secondary? && self[:avatar].present?
File.join(::Gitlab::Geo.primary_node.url, avatar.url)
else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment