|
@@ -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.
|