Restore some context in comment (#11587)
rhymes mentioned that this context might be useful regarding this comment. I removed some of this info in https://github.com/forem/forem/pull/11480, so this commit adds that context along with a link that rhymes shared with me.
This commit is contained in:
parent
c29bff5955
commit
e2f33a37b7
1 changed files with 1 additions and 0 deletions
|
|
@ -7,6 +7,7 @@
|
|||
</header>
|
||||
<div>
|
||||
<%# it's unlikely that a user will belong to enough organizations to cause a performance issue here %>
|
||||
<%# More info regarding the `.present?/.each` pattern: https://www.speedshop.co/2019/01/10/three-activerecord-mistakes.html %>
|
||||
<% @user.organizations.each do |organization| %>
|
||||
<a href="/<%= organization.slug %>" class="flex items-center crayons-link crayons-link--contentful">
|
||||
<span class="crayons-logo crayons-logo--l mr-2 shrink-0">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue