Browse Source

detect threadsafe methods directly, rather than inferring based on version

Peter McCracken 9 years ago
parent
commit
3187765cd3
1 changed files with 1 additions and 1 deletions
  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