From 78360afc5c350bfa0713f2231dddd5c4ec4846c8 Mon Sep 17 00:00:00 2001 From: Ryan Bigg Date: Sat, 17 Dec 2011 10:30:47 +1100 Subject: [PATCH] Use bill_address ||= rather than bill_address = val unless bill_address --- app/controllers/spree/checkout_controller_decorator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/spree/checkout_controller_decorator.rb b/app/controllers/spree/checkout_controller_decorator.rb index 9cb587c..4cd2564 100644 --- a/app/controllers/spree/checkout_controller_decorator.rb +++ b/app/controllers/spree/checkout_controller_decorator.rb @@ -89,7 +89,7 @@ module Spree order_ship_address.save! @order.ship_address = order_ship_address - @order.bill_address = order_ship_address unless @order.bill_address + @order.bill_address ||= order_ship_address end @order.save