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