Do not count order shipments in Order#shipping_method

This commit is contained in:
Kristina Lim
2019-09-26 11:01:06 +08:00
parent 2f3509bf9b
commit 721a0d3a98

View File

@@ -19,7 +19,7 @@ module OrderShipment
#
# @return [ShippingMethod]
def shipping_method
return if shipments.empty?
return if shipments.blank?
shipments.first.shipping_method
end