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.
8 lines
202 B
Plaintext
8 lines
202 B
Plaintext
<h3 class="title"><%= t("welcome.cards.title") %></h3>
|
|
|
|
<div class="row" data-equalizer data-equalizer-on="medium">
|
|
<% @cards.each do |card| %>
|
|
<%= render "card", card: card %>
|
|
<% end %>
|
|
</div>
|