Fix min method in delete_event_schedules

`minute` is no longer a method. There's a 500 error if you try to edit the end time of a conference.
This commit is contained in:
Michael Ball 2020-07-16 00:45:47 -07:00 committed by GitHub
parent 6e6a6dcd39
commit 6f0d2c592b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -119,7 +119,7 @@ class Conference < ApplicationRecord
event_schedules = program.event_schedules.select do |event_schedule|
event_schedule.start_time.hour < start_hour ||
event_schedule.end_time.hour > end_hour ||
(event_schedule.end_time.hour == end_hour && event_schedule.end_time.minute > 0)
(event_schedule.end_time.hour == end_hour && event_schedule.end_time.min > 0)
end
event_schedules.each(&:destroy)
end