File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ def cache_contributable_universe_ids
159159 cache_current_user_content
160160
161161 @contributable_universe_ids ||= if user_signed_in?
162- current_user . contributable_universe_ids + @current_user_content . fetch ( 'Universe' , [ ] ) . map ( & :id )
162+ current_user . contributable_universe_ids
163163 else
164164 [ ]
165165 end
Original file line number Diff line number Diff line change 1717 </ a >
1818 < div class ="collapsible-body blue lighten-1 ">
1919 < ul >
20- <%# TODO: we should use a cache here %>
21- <% ( @current_user_content . fetch ( 'Universe' , [ ] ) + current_user . contributable_universes ) . sort_by ( &:name ) . each do |universe | %>
20+ <% @current_user_content . fetch ( 'Universe' , [ ] ) . sort_by ( &:name ) . each do |universe | %>
2221 < li >
2322 <%= link_to "?universe=#{ universe . id } " , class : 'waves-effect' do %>
2423 < i class ="material-icons <%= Universe . text_color %> ">
You can’t perform that action at this time.
0 commit comments