瀏覽代碼

Add default timeout to ShopifyAPI::Base

Alex Coco 9 年之前
父節點
當前提交
db574b6a3a
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      lib/shopify_api/resources/base.rb

+ 1 - 0
lib/shopify_api/resources/base.rb

@@ -4,6 +4,7 @@ module ShopifyAPI
   class Base < ActiveResource::Base
     class InvalidSessionError < StandardError; end
     extend Countable
+    self.timeout = 90
     self.include_root_in_json = false
     self.headers['User-Agent'] = ["ShopifyAPI/#{ShopifyAPI::VERSION}",
                                   "ActiveResource/#{ActiveResource::VERSION::STRING}",