[fix] Fix function name
This commit is contained in:
parent
8e95325119
commit
4e1e9bdfbd
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue