Use bill_address ||= rather than bill_address = val unless bill_address

This commit is contained in:
Ryan Bigg 2011-12-17 10:30:47 +11:00
parent 162107ed0a
commit 78360afc5c
1 changed files with 1 additions and 1 deletions

View File

@ -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