Install ruby-request-store by entering the following commands in the terminal:
sudo apt update sudo apt install ruby-request-store
Description:
per-request global variable storage for Rack-based web servers
RequestStore gives you per-request global storage of variables for Rack- compliant web servers. It is intended as an alternative to Thread.current, to avoid bugs in threaded server implementations. RequestStore supports Rails 3+ out-of-the-box, but can be configured for use in Rails 2.x and non-Rails environments.
Homepage: http://github.com/steveklabnik/request_store
Version: 1.3.0-1
Section: universe/ruby