Procházet zdrojové kódy

detect threadsafe methods directly, rather than inferring based on version

Peter McCracken před 9 roky
rodič
revize
3187765cd3
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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