We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 608e824 commit 27edbf5Copy full SHA for 27edbf5
app/views/content/cards/_in_universe_content_list.html.erb
@@ -5,7 +5,7 @@
5
%>
6
<div class="card hoverable">
7
<div class="card-image">
8
- <% images = ImageUpload.where(content_type: content_type_name, content_id: content_list.map(&:id)) %>
+ <% images = ImageUpload.where(content_type: content_type_name, content_id: content_list.pluck(:id)) %>
9
<% if images.any? && rand(3) < 2 %>
10
<%= image_tag images.sample.src(:large), class: 'activator', style: 'height: 265px' %>
11
<% else %>
0 commit comments