summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAndreas Brandl <abrandl@gitlab.com>2018-02-09 13:07:19 +0100
committerAndreas Brandl <abrandl@gitlab.com>2018-02-13 18:04:51 +0100
commitc641dff09422522b7de651fc77292d89f137746b (patch)
treea45c9e54da8d0e4e08444dc323f0e2c21c0411a1 /scripts
parentd5ffcb81b6f9d0750fac75d1655dc8d77c07bc85 (diff)
downloadgitlab-ce-c641dff09422522b7de651fc77292d89f137746b.tar.gz
Explicit use of avatar_icon_* calls depending on situation.
We want to drop the generic #avatar_icon helper that supports both an email and a user object being passed in. Instead, we want to explicitly use the #avatar_icon_for_user and #avatar_icon_for_email helpers depending on what we have at hand. This allows us to avoid unnecessary database queries (e.g. call User.find_by_any_email if we already have the user). In situations like here, this makes it less convenient to use.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions