app/models/ticket/transfers.rb in artfully_ose-1.2.0.beta.1 vs app/models/ticket/transfers.rb in artfully_ose-1.2.0.pre
- old
+ new
@@ -4,13 +4,10 @@
def sell_to(buyer, time=Time.now)
begin
self.buyer = buyer
self.sold_at = time
self.sell!
- # moved to order_processor
- # generate_qr_code
- self.show.refresh_stats
rescue Transitions::InvalidTransition
return false
end
end
@@ -20,13 +17,10 @@
def exchange_to(buyer, time=Time.now)
begin
self.buyer = buyer
self.sold_at = time
self.exchange!
- # moved to order_processor
- # generate_qr_code
- self.show.refresh_stats
rescue Transitions::InvalidTransition => e
puts e
return false
end
end
@@ -35,13 +29,10 @@
begin
self.buyer = buyer
self.sold_price = 0
self.sold_at = time
self.comp!
- # moved to order_processor
- # generate_qr_code
- self.show.refresh_stats
rescue Transitions::InvalidTransition => e
puts e
return false
end
end
@@ -50,12 +41,11 @@
and_return_to_inventory ? return_to_inventory! : return_off_sale!
remove_from_cart
self.buyer = nil
self.sold_at = nil
self.buyer_id = nil
- self.qr_code = nil
+ Rails.logger.debug(self.inspect)
self.reset_price!
- self.show.refresh_stats
save
end
-end
+end
\ No newline at end of file