Registry / web-framework / rails-current

rails-current

JSON →
library2.2.0rbrubygemsunverified

Track 'current_user' et all in a tidy, global, and thread-safe fashion for your rails apps.

gem install rails_current
INSTALL
IMPORT
SIG · RAILS-CURRENT
R
rails-current
web-frameworkrubyv2.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RailsCurrent
require 'rails_current'

Set and retrieve the current user in a thread-safe manner.

require 'rails_current' # In a controller: # RailsCurrent.current_user = User.find(session[:user_id]) # Then access anywhere: RailsCurrent.current_user
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.2.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
8
Resources
rails-current — gem install rails-current · libregistry