소스 검색

Allow options to be passed to shop fetching

Andrew Narkewicz 10 년 전
부모
커밋
bb3b2356ad
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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