Bläddra i källkod

simplify the :from part of the request

Peter Schröder 11 år sedan
förälder
incheckning
9f85324cea
1 ändrade filer med 1 tillägg och 1 borttagningar
  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