[feat] remove unintended check; add auto-redirect to non-free ticket
This commit is contained in:
parent
1ca58961c1
commit
da8939dd3a
4 changed files with 24 additions and 21 deletions
|
|
@ -349,10 +349,8 @@ class User < ApplicationRecord
|
|||
def count_registration_tickets(conference)
|
||||
count = 0
|
||||
ticket_purchases.by_conference(conference).each do |ticket_purchase|
|
||||
ticket_purchase.physical_tickets.each do |physical_ticket|
|
||||
if physical_ticket.ticket.registration_ticket
|
||||
count += 1
|
||||
end
|
||||
if ticket_purchase.ticket.registration_ticket
|
||||
count += 1
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue