Readme sample usage won't work in multithreaded rails #28

Closed
masterkain opened this Issue Apr 2, 2012 · 3 comments

4 participants

@masterkain
config.middleware.insert_before(Rack::Lock, Rack::Rewrite) do

if your rails application is configured to config.threadsafe! Rack::Lock is not in the middleware list.

@jhilden

We have come accross the same Problem since Rails4 is treadsafe by default. For us it worked to insert Rack::Rewrite after Rack::Runtime

config.middleware.insert_before(Rack::Runtime, Rack::Rewrite) do

It would be great if you could update the README accordingly.

@travisjeffery
Collaborator

Merged #48, closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment