steveklabnik / request_store

Per-request global storage for Rack.
https://github.com/steveklabnik/request_store
MIT License
1.48k stars 87 forks source link

Insert middleware after ActionDispatch::RequestId #28

Closed biinari closed 10 years ago

biinari commented 10 years ago

When using rails-api with api_only set to true, Rack::MethodOverride is not included in the middleware stack. ActionDispatch::RequestId follows Rack::MethodOverride in rails-api and the normal rails middleware stacks so inserting after that instead.

Resolves #27

steveklabnik commented 10 years ago

Thank you!

I'll put out a release with this later today.

steveklabnik commented 10 years ago

Released as 1.0.7.

biinari commented 10 years ago

Great thanks!