瀏覽代碼

Make explicit which Activities are active etc.

Maarten van den Berg 6 年之前
父節點
當前提交
410819762f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/models/group.rb

+ 1 - 1
app/models/group.rb

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