소스 검색

Update variant.rb

marschattha 5 년 전
부모
커밋
95673e5351
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      lib/shopify_api/resources/variant.rb

+ 2 - 2
lib/shopify_api/resources/variant.rb

@@ -24,8 +24,8 @@ module ShopifyAPI
       if allow_inventory_params?
         super(options)
       else
-        super(options).tap do |serialized_hash|
-          (serialized_hash['variant'] || serialized_hash).except!('inventory_quantity', 'old_inventory_quantity')
+        super(options).tap do |resource|
+          (resource['variant'] || resource).except!('inventory_quantity', 'old_inventory_quantity')
         end
       end
     end