[refractor]Use ? methods instead of boolean variables; rename happening_next? to happening_later?
This commit is contained in:
parent
5aea1efab1
commit
47e580904d
6 changed files with 18 additions and 18 deletions
|
|
@ -70,7 +70,7 @@ class EventSchedule < ApplicationRecord
|
|||
event_time_range.overlaps?(now_range)
|
||||
end
|
||||
|
||||
def happening_next?
|
||||
def happening_later?
|
||||
# TODO: Save start_time with local timezone info when making an event schedule
|
||||
in_tz_start = start_time.in_time_zone(timezone)
|
||||
in_tz_start -= in_tz_start.utc_offset
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue