[fix] live_events return json; use the provided happening_now? function
This commit is contained in:
parent
25af736868
commit
7fe1c597ff
3 changed files with 2 additions and 12 deletions
|
|
@ -337,10 +337,6 @@ class Event < ApplicationRecord
|
|||
time <=> other.time
|
||||
end
|
||||
|
||||
def is_live?
|
||||
time >= Time.now && Time.now <= time + event_type.length
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
##
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue