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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user