app/models/ticket/locker.rb in artfully_ose-1.3.0.pre3 vs app/models/ticket/locker.rb in artfully_ose-1.3.0.pre4
- old
+ new
@@ -6,16 +6,17 @@
tickets = Array.wrap(tickets)
#
# TODO: blow up if this ticket_type does not apply to this show
#
- Rails.logger.debug(tickets.inspect)
+ Rails.logger.debug("LOCKER LOCKING TICKETS: #{tickets.inspect}")
+ Rails.logger.debug("LOCKER WITH TICKET TYPE: #{ticket_type.inspect}")
Ticket.where(:id => tickets).update_all({ :cart_id => cart.id,
:ticket_type_id => ticket_type.id,
:cart_price => ticket_type.price
})
tickets = Ticket.includes(:ticket_type).where(:id => tickets)
- Rails.logger.debug(tickets.inspect)
+ Rails.logger.debug("LOCKER #{tickets.inspect}")
cart << tickets
ExpireTicketJob.enqueue(tickets.collect(&:id), cart.id)
tickets
end
\ No newline at end of file