Removed unused shipping_method.within_zone, customization not needed

This commit is contained in:
luisramos0
2018-09-06 20:28:46 +01:00
parent 417c33a870
commit d2f4f8ccb2

View File

@@ -42,14 +42,6 @@ Spree::ShippingMethod.class_eval do
]
end
def within_zone?(order)
if order.ship_address
zone && zone.include?(order.ship_address)
else
true # Shipping methods are available before we've selected an address
end
end
def has_distributor?(distributor)
self.distributors.include?(distributor)
end