Jelajahi Sumber

Add default timeout to ShopifyAPI::Base

Alex Coco 9 tahun lalu
induk
melakukan
db574b6a3a
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  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}",