[refractor]Use ? methods instead of boolean variables; rename happening_next? to happening_later?

This commit is contained in:
Jimmy 2021-04-17 08:30:07 +08:00
parent 59c5d432ed
commit ab15a3fb10
No known key found for this signature in database
GPG key ID: FAE75C760A4A5CC6
6 changed files with 18 additions and 18 deletions

View file

@ -89,7 +89,7 @@ module ConferenceHelper
def get_happening_next_events_schedules(conference)
events_schedules = conference.program.selected_event_schedules(
includes: [:room, { event: %i[track event_type speakers submitter] }]
).select(&:happening_next?)
).select(&:happening_later?)
if events_schedules.empty?
return []