diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2015-10-12 18:03:12 +0300 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2015-10-15 13:05:01 +0300 |
commit | 949635636728fa388d983b180b7ab4e55aa8caa9 (patch) | |
tree | 4186d3d9e3c8fdcb4f44a5d6ca2fec685e2f5adf /app/views/profiles/show.html.haml | |
parent | 693e63f5234032aa1abbc226c0d6337d6ea810ed (diff) |
Re-use User objects for avatar_icon where possible
This removes the need for running an extra SQL query in these cases.
Diffstat (limited to 'app/views/profiles/show.html.haml')
-rw-r--r-- | app/views/profiles/show.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/profiles/show.html.haml b/app/views/profiles/show.html.haml index 47412e2ef0c..ac7355dde1f 100644 --- a/app/views/profiles/show.html.haml +++ b/app/views/profiles/show.html.haml @@ -68,7 +68,7 @@ .col-md-5 .light-well - = image_tag avatar_icon(@user.email, 160), alt: '', class: 'avatar s160' + = image_tag avatar_icon(@user, 160), alt: '', class: 'avatar s160' .clearfix .profile-avatar-form-option |