File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments