Browse Source

Update variant.rb

marschattha 5 years ago
parent
commit
95673e5351
1 changed files with 2 additions and 2 deletions
  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?
       if allow_inventory_params?
         super(options)
         super(options)
       else
       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
       end
     end
     end