shopify performance tests: add 'compact' size to product_img_url filter

This commit is contained in:
James MacAulay
2010-02-04 10:57:14 -05:00
parent cbf8986745
commit 97548d4f01

View File

@@ -61,10 +61,10 @@ module ShopFilter
case style
when 'original'
return '/files/shops/random_number/' + url
when 'grande', 'large', 'medium', 'small', 'thumb', 'icon'
when 'grande', 'large', 'medium', 'compact', 'small', 'thumb', 'icon'
"/files/shops/random_number/products/#{$1}_#{style}.#{$2}"
else
raise ArgumentError, 'valid parameters for filter "size" are: original, grande, large, medium, small, thumb and icon '
raise ArgumentError, 'valid parameters for filter "size" are: original, grande, large, medium, compact, small, thumb and icon '
end
end