[fix] Fix function name

This commit is contained in:
Jimmy 2021-03-16 22:16:21 +08:00 committed by CactusPuppy
parent 879510bc8c
commit badc6a3163
No known key found for this signature in database
GPG key ID: 4B33B0A3E15E2C82

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