浏览代码

simplify the :from part of the request

Peter Schröder 11 年之前
父节点
当前提交
9f85324cea
共有 1 个文件被更改,包括 1 次插入1 次删除
  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