[feat] Endpoint implementation done
This commit is contained in:
parent
badc6a3163
commit
25af736868
1 changed files with 1 additions and 1 deletions
|
|
@ -337,7 +337,7 @@ class Event < ApplicationRecord
|
||||||
time <=> other.time
|
time <=> other.time
|
||||||
end
|
end
|
||||||
|
|
||||||
def live?
|
def is_live?
|
||||||
time >= Time.now && Time.now <= time + event_type.length
|
time >= Time.now && Time.now <= time + event_type.length
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue