Skip to content
Browse files

Merge pull request #36 from Shopify/fix_variant_price_range

Adds to_f to prices to get correct range.
  • Loading branch information...
2 parents 0769cdd + 1cb3279 commit 181040014b2a7688e44745025c7befcca2f6e340 @jnormore jnormore committed Oct 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/shopify_api/resources/product.rb
View
2 lib/shopify_api/resources/product.rb
@@ -5,7 +5,7 @@ class Product < Base
# compute the price range
def price_range
- prices = variants.collect(&:price)
+ prices = variants.collect(&:price).collect(&:to_f)
format = "%0.2f"
if prices.min != prices.max
"#{format % prices.min} - #{format % prices.max}"

0 comments on commit 1810400

Please sign in to comment.
Something went wrong with that request. Please try again.