Parcourir la source

simplify the :from part of the request

Peter Schröder il y a 11 ans
Parent
commit
9f85324cea
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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