Skip to content

Commit d0a9fed

Browse files
committed
assigned volunteers has a has many through to active case assignments which is contributing to n+1, no current action taken
1 parent 3926eaa commit d0a9fed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/views/casa_cases/index.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
<% unless current_user.volunteer? %>
8787
<td class="min-width">
8888
<% if casa_case.active? %>
89+
<%# NB: this is a N+1 but we have chosen to leave it as because we are using assigned volunteer information %>
8990
<%= safe_join(casa_case.assigned_volunteers.map { |vol|
9091
link_to(vol.display_name, edit_volunteer_path(vol)) },
9192
", ") %>

0 commit comments

Comments
 (0)