@@ -302,6 +302,10 @@ module ShopifyAPI
class Variant < Base
self.prefix = "/admin/products/:product_id/"
+
+ def self.prefix(options={})
+ options[:product_id].nil? ? "/admin/" : "/admin/products/#{options[:product_id]}/"
+ end
end
class Image < Base