From a5c10dc16179d3edc3239763d6c4404b1325bb91 Mon Sep 17 00:00:00 2001 From: Michael Ball Date: Mon, 15 Jun 2020 10:55:26 -0700 Subject: [PATCH] ugh typo --- app/models/ticket_purchase.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/ticket_purchase.rb b/app/models/ticket_purchase.rb index 4e554055..1eaa9cf5 100644 --- a/app/models/ticket_purchase.rb +++ b/app/models/ticket_purchase.rb @@ -106,7 +106,7 @@ end def count_purchased_registration_tickets(conference, purchases) # TODO: WHAT CAUSED THIS??? - return 0 unless purcahses + return 0 unless purchases conference.tickets.for_registration.inject(0) do |sum, registration_ticket| sum + purchases[registration_ticket.id.to_s].to_i end