Skip to content

Commit

Permalink
Merge pull request wearefriday#18 from wearefriday/nd/n+1
Browse files Browse the repository at this point in the history
Scope filter to reduce n+1 queries
  • Loading branch information
fionnbharra committed Sep 20, 2016
2 parents b1b4d5c + dfc2224 commit 60a0df9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/projects/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</tr>
</thead>
<tbody>
<% @projects.each do |project| %>
<% @projects.includes(:suites).each do |project| %>
<% project.suites.each_with_index do |suite, i| %>
<tr id="project_<%= project.id %>">
<th><%= project.name %></th>
Expand Down

0 comments on commit 60a0df9

Please sign in to comment.