Merge pull request #4326 from kristinalim/feature/4310-remove_shipments_count

4310 Do not count order shipments in Order#shipping_method
This commit is contained in:
Luis Ramos
2019-10-01 11:17:42 +01:00
committed by GitHub

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