Add warnings when a user needs to register or complete a purchase

This commit is contained in:
Michael Ball 2020-07-11 01:50:17 -07:00
parent 5bef4b7004
commit 1964522f49
4 changed files with 41 additions and 1 deletions

View file

@ -116,7 +116,7 @@ class Conference < ApplicationRecord
# True when there is at least one ticket marked as "registration"
# A user must get a registration ticket before registering.
def registration_ticket_required?
tickets.for_registration.any?
registration_tickets.any?
end
##