Commit 41df76b0 authored by Karlo Soriano's avatar Karlo Soriano

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.
parent c01ff1f5
......@@ -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