Use each instead of find_each to preserve order (#3519)
This commit is contained in:
parent
ed35ab71a5
commit
e604bf729c
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@
|
|||
<% @sponsorships = Sponsorship.gold.live.includes(:organization).order(featured_number: :asc) %>
|
||||
<% if @sponsorships.any? %>
|
||||
<div class="widget-body">
|
||||
<% @sponsorships.find_each do |sponsorship| %>
|
||||
<% @sponsorships.each do |sponsorship| %>
|
||||
<%= render "articles/single_sponsor", sponsorship: sponsorship %>
|
||||
<% end %>
|
||||
<div class="sponsors-love-message">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue