Browse Source

Allow options to be passed to shop fetching

Andrew Narkewicz 10 năm trước cách đây
mục cha
commit
bb3b2356ad
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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