Use @cards.each instead of @cards.find_each

Using `find_each` ignores the scope order we set in `Widget::Card.body`,
and since we don't expect to have thousands of cards, using batches
isn't necessary.

This way we remove the "WARN Scoped order and limit are ignored, it's
forced to be batch order and batch size" message we were getting in the
specs.
This commit is contained in:
Javi Martín
2018-11-28 13:11:53 +01:00
parent e23fbc8d58
commit 56df8050df

View File

@@ -1,7 +1,7 @@
<h3 class="title"><%= t("welcome.cards.title") %></h3>
<div class="row" data-equalizer data-equalizer-on="medium">
<% @cards.find_each do |card| %>
<% @cards.each do |card| %>
<%= render "card", card: card %>
<% end %>
</div>