Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

updating README

  • Loading branch information...
commit b12f3b85deec3cbdfc48e16d8cede54ac328eefa 1 parent d082f18
@peterjm peterjm authored
Showing with 16 additions and 0 deletions.
  1. +16 −0 README.rdoc
View
16 README.rdoc
@@ -139,6 +139,22 @@ This package also includes the +shopify+ executable to make it easy to open up a
shopify help
+== Threadsafety
+
+ActiveResource is inherently non-threadsafe, because class variables like `ActiveResource::Base.site` and
+`ActiveResource::Base.headers` are shared between threads. This can cause conflicts when using
+threaded libraries, like Sidekiq.
+
+We have a forked version of ActiveResource that stores these class variables in threadlocal
+variables. Using this forked version will allow ShopifyAPI to be used in a threaded environment.
+
+To enable threadsafety with ShopifyAPI, add the following to your Gemfile:
+
+```
+gem 'activeresource', :git => 'git://github.com/peterjm/activeresource', :ref => '47e7f181d9'
+gem 'shopify_api', '>= 3.3.0'
+```
+
== Using Development Version
Download the source code and run:
Please sign in to comment.
Something went wrong with that request. Please try again.