Add warnings when a user needs to register or complete a purchase
This commit is contained in:
parent
5bef4b7004
commit
1964522f49
4 changed files with 41 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
##
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue