diff --git a/app/services/tables/distribution.rb b/app/services/tables/distribution.rb index aa87de5..d94d690 100644 --- a/app/services/tables/distribution.rb +++ b/app/services/tables/distribution.rb @@ -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