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 8cd5409 commit 765ec3cCopy full SHA for 765ec3c
app/views/content/list/_cards.html.erb
@@ -1,7 +1,7 @@
1
<div class="js-content-cards-list">
2
<% content_list.each.with_index do |content, i| %>
3
<%
4
- content_image = @random_image_including_private_pool_cache[[content.page_type, content.id]]
+ content_image = @random_image_including_private_pool_cache.fetch([content.page_type, content.id], [])
5
.sample
6
.try(:src, :medium) || asset_path("card-headers/#{content.page_type.downcase.pluralize}.jpg")
7
%>
0 commit comments