[fix] Fix function name

This commit is contained in:
Jimmy 2021-03-16 22:16:21 +08:00
parent 8e95325119
commit 4e1e9bdfbd

View file

@ -337,7 +337,7 @@ class Event < ApplicationRecord
time <=> other.time
end
def is_live?
def live?
time >= Time.now && Time.now <= time + event_type.length
end