Browse Source

Make explicit which Activities are active etc.

Maarten van den Berg 6 years ago
parent
commit
410819762f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/models/group.rb

+ 1 - 1
app/models/group.rb

@@ -54,7 +54,7 @@ class Group < ApplicationRecord
54 54
       .where('start < ?', reference.days_since(2))
55 55
       .order(start: :asc)
56 56
 
57
-    return [currently_active, previous, upcoming].flatten
57
+    return {currently_active: currently_active, previous: previous, upcoming: upcoming}
58 58
   end
59 59
 
60 60
   # Determine whether the passed person is a member of the group.