Permalink
Browse files

Adds to_f to prices to get correct range.

  • Loading branch information...
1 parent 0769cdd commit 1cb327940fc140366dc2a7d49d1c0a8059b3b349 @jnormore jnormore committed Oct 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 1cb3279

Please sign in to comment.