diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2025-11-06 16:35:17 -0500 |
|---|---|---|
| committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-11-06 16:35:17 -0500 |
| commit | 372d456ae300adc0f321739182b897fbe2164937 (patch) | |
| tree | 5ae2199573906779205f4a73eed8e7c54ee2d20d | |
| parent | cc4a3bf54e87b76635c6e3f466764684dd1a1e31 (diff) | |
clients: avoid an extra query
| -rw-r--r-- | app/views/clients/intake_form.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/clients/intake_form.html.erb b/app/views/clients/intake_form.html.erb index 6a41e08..cf454b0 100644 --- a/app/views/clients/intake_form.html.erb +++ b/app/views/clients/intake_form.html.erb @@ -58,7 +58,7 @@ <p>Phone Number: <%= @client.mobile_number %></p> <div class="form-section"> - <p>Total individuals in household: <%= @client.household_members.count %></p> + <p>Total individuals in household: <%= @household_member_counts.values.count %></p> <% HouseholdMember::MEMBER_TYPES.each do |key, value| %> <%= value %> |
