Quellcode durchsuchen

Allow options to be passed to shop fetching

Andrew Narkewicz vor 10 Jahren
Ursprung
Commit
bb3b2356ad
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  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