[feat] Use existing #happening_now method; respond to both html and json requests
This commit is contained in:
parent
034313cccb
commit
871457f65b
5 changed files with 5 additions and 12 deletions
|
|
@ -784,10 +784,6 @@ class Conference < ApplicationRecord
|
|||
end_date < Time.current
|
||||
end
|
||||
|
||||
def find_live_events
|
||||
program.events.select(&:happening_now?)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
# Returns a different html colour for every i and consecutive colors are
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue