diff options
author | Andreas Brandl <abrandl@gitlab.com> | 2018-02-09 15:07:19 +0300 |
---|---|---|
committer | Andreas Brandl <abrandl@gitlab.com> | 2018-02-13 20:04:51 +0300 |
commit | c641dff09422522b7de651fc77292d89f137746b (patch) | |
tree | a45c9e54da8d0e4e08444dc323f0e2c21c0411a1 /app/helpers/application_helper.rb | |
parent | d5ffcb81b6f9d0750fac75d1655dc8d77c07bc85 (diff) |
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 'app/helpers/application_helper.rb')
0 files changed, 0 insertions, 0 deletions