Explorar o código

detect threadsafe methods directly, rather than inferring based on version

Peter McCracken %!s(int64=9) %!d(string=hai) anos
pai
achega
3187765cd3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/shopify_api/resources/base.rb

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

@@ -28,7 +28,7 @@ module ShopifyAPI
     end
 
     class << self
-      if ActiveResource::VERSION::MAJOR == 4 && ActiveResource::VERSION::PRE == 'threadsafe'
+      if ActiveResource::Base.respond_to?(:_headers) && ActiveResource::Base.respond_to?(:_headers_defined?)
         def headers
           if _headers_defined?
             _headers