implementation in progress
This commit is contained in:
parent
51f9ba0206
commit
7475a40775
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