Explorar el Código

Add 'grande' to supported image size variants.

Dennis Theisen hace 14 años
padre
commit
48b1ec2043
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/shopify_api.rb

+ 1 - 1
lib/shopify_api.rb

@@ -308,7 +308,7 @@ module ShopifyAPI
     self.prefix = "/admin/products/:product_id/"
     
     # generate a method for each possible image variant
-    [:pico, :icon, :thumb, :small, :compact, :medium, :large, :original].each do |m|
+    [:pico, :icon, :thumb, :small, :compact, :medium, :large, :grande, :original].each do |m|
       reg_exp_match = "/\\1_#{m}.\\2"
       define_method(m) { src.gsub(/\/(.*)\.(\w{2,4})/, reg_exp_match) }
     end