joshsusser / refraction

Rack middleware replacement for mod_rewrite
220 stars 11 forks source link

Rails 4 - No such middleware to insert before: Rack::Lock #15

Open mindbreaker opened 10 years ago

mindbreaker commented 10 years ago

I use refraction with rails 4:

No such middleware to insert before: Rack::Lock

to fix this error change

config.middleware.insert_before(::Rack::Lock, ::Refraction)

to

config.middleware.insert_before(::Rack::Runtime, ::Refraction)

Explanation here: http://stackoverflow.com/questions/17131366/no-such-middleware-to-insert-before-racklock-runtimeerror-after-upgrading

thomasdarde commented 10 years ago

Is refraction abandonned ? No commit in 4 years !

zerocool4u2 commented 9 years ago

thanks, that works perfect

thomasdarde commented 3 years ago

Well @thomasdarde I think you have a reply 🥇