Explorar el Código

Add default timeout to ShopifyAPI::Base

Alex Coco hace 9 años
padre
commit
db574b6a3a
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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}",