Path to this page:
./
wip/ruby-request_store,
Per-request global storage for Rack
Branch: CURRENT,
Version: 1.5.0,
Package name: ruby32-request_store-1.5.0,
Maintainer: pkgsrc-usersEver needed to use a global variable in Rails? Ugh, that's the worst. If youq
need global state, you've probably reached for Thread.current. Like this:
def self.foo
Thread.current[:foo] ||= 0
end
def self.foo=(value)
Thread.current[:foo] = value
end
Ugh! I hate it. But you gotta do what you gotta do...
Required to run:[
www/ruby-rack] [
lang/ruby26-base]
Required to build:[
pkgtools/cwrappers]
Master sites:
RMD160: d93bbff6e4f84f0f4ff5c1af794ce16bec109888
Filesize: 9 KB
Version history: (Expand)
- (2024-09-19) Package has been reborn
- (2024-09-19) Updated to version: ruby32-request_store-1.5.0
- (2024-09-15) Package deleted from pkgsrc
- (2023-02-13) Package has been reborn
- (2023-02-13) Updated to version: ruby31-request_store-1.5.0
- (2021-10-08) Updated to version: ruby27-request_store-1.5.0