Sfoglia il codice sorgente

Allow options to be passed to shop fetching

Andrew Narkewicz 10 anni fa
parent
commit
bb3b2356ad
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      lib/shopify_api/resources/shop.rb

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

@@ -2,8 +2,8 @@ module ShopifyAPI
   # Shop object. Use Shop.current to receive 
   # the shop.
   class Shop < Base
-    def self.current
-      find(:one, from: "/admin/shop.#{format.extension}")
+    def self.current(options={})
+      find(:one, options.merge({from: "/admin/shop.#{format.extension}"}))
     end
 
     def metafields