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

Merge branch 'remove-unnecessary-method-call-in-events-view' into 'master'

Remove unnecessary method call in events view

Since `User#to_param` already returns `User#username`, we don't need to
pass in the user's username. Changing this also helps us obey LoD.

See merge request !3996
parents 466f6874 41df76b0
......@@ -5,7 +5,7 @@
= cache [event, current_application_settings, "v2.2"] do
- if event.author
= link_to user_path(event.author.username) do
= link_to user_path(event.author) do
= image_tag avatar_icon(event.author_email, 40), class: "avatar s40", alt:''
- else
= image_tag avatar_icon(event.author_email, 40), class: "avatar s40", alt:''
......
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