Small refactor
Some checks failed
Run unit tests / unit_tests (pull_request) Failing after 8m42s

This commit is contained in:
Manuel Bustillo 2024-07-25 11:25:22 +02:00
parent d50ee7cb06
commit 95da6141ac

View File

@ -60,9 +60,7 @@ module Tables
end
def number_of_groups(table)
table.map do |person|
person.affinity_groups
end.flatten.uniq.count
table.map(&:affinity_groups).flatten.uniq.count
end
end
end