소스 검색

Add 'grande' to supported image size variants.

Dennis Theisen 14 년 전
부모
커밋
48b1ec2043
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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