steveklabnik / request_store

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

NameError: uninitialized constant Api::V1::UsersController::RequestStore #60

Closed vishalTatvaSoft closed 6 years ago

vishalTatvaSoft commented 6 years ago

users_controller.rb

RequestStore.store["#{response.data.id}"] = "Some of the items in your cart are either not available at this new store or the prices may have changed. Please review below."

When i am using it in my users controller , it gives me this error, is there any way to use request store in versioning or namespace ?

vishalTatvaSoft commented 6 years ago

Sorry, it was silly mistake by me, i forgot to restart server :(