implementation in progress
This commit is contained in:
parent
f3db1288cf
commit
018bbff7b8
4 changed files with 12 additions and 2 deletions
|
|
@ -338,7 +338,7 @@ class Event < ApplicationRecord
|
|||
end
|
||||
|
||||
def is_live?
|
||||
start_time >= Time.now && Time.now <= start_time + event_type.length
|
||||
time() >= Time.now && Time.now <= time() + event_type.length
|
||||
end
|
||||
|
||||
private
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue