app/controllers/sales_controller.rb in artfully_ose-1.2.0.pre.16 vs app/controllers/sales_controller.rb in artfully_ose-1.2.0.pre.17
- old
+ new
@@ -61,10 +61,10 @@
# TODO: this should be pulled into TicketTypeSerializer
def tickets_remaining
remaining = {}
@sale.ticket_types.each do |ticket_type|
- remaining[ticket_type.id] = ticket_type.available
+ remaining[ticket_type.id] = ticket_type.available("box_office")
end
remaining
end
def setup_defaults