Skip to content

Commit 8662f85

Browse files
committed
edit comments and fix typos
1 parent e870aa7 commit 8662f85

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/controllers/admin/groups_controller.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,16 @@ def fill_groups
4040
end
4141
end
4242

43-
# add one attendee to each group as long as there are attendees in array
43+
# get selected attendees from DB
4444
@attendees = @event.applications.application_selected.confirmed.to_a
4545

46-
groupped_attendes_by_language = @attendees.group_by do |element|
46+
grouped_attendees_by_language = @attendees.group_by do |element|
4747
[element.language_de, element.language_en]
4848
end
4949

50-
attendees_de = groupped_attendes_by_language[[true, false]]
51-
attendees_en = groupped_attendes_by_language[[false, true]]
52-
attendees_de_en = groupped_attendes_by_language[[true, true]]
50+
attendees_de = grouped_attendees_by_language[[true, false]]
51+
attendees_en = grouped_attendees_by_language[[false, true]]
52+
attendees_de_en = grouped_attendees_by_language[[true, true]]
5353

5454
de_groups = attendees_de.in_groups_of(6, false)
5555
en_groups = attendees_en.in_groups_of(6, false)

0 commit comments

Comments
 (0)