Explorar o código

simplify the :from part of the request

Peter Schröder %!s(int64=11) %!d(string=hai) anos
pai
achega
9f85324cea
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/shopify_api/resources/customer.rb

+ 1 - 1
lib/shopify_api/resources/customer.rb

@@ -7,7 +7,7 @@ module ShopifyAPI
     end
 
     def self.search(params)
-      find(:all, from: '/admin/customers/search.json', params: params)
+      find(:all, from: :search, params: params)
     end
   end
 end