Closed devvit closed 6 years ago
Sir, as I saw, paper_trail now use request_store for context storage completely,
paper_trail
request_store
currently, paper_trail-sinatra only contains whodunnit,
paper_trail-sinatra
whodunnit
I can add a few lines simply to get more functions:
#line 35 ::PaperTrail.whodunnit = user_for_paper_trail if ::PaperTrail.enabled? PaperTrail.enabled_for_controller = paper_trail_enabled_for_controller PaperTrail.controller_info = info_for_paper_trail
Is it correct? request_store is thread-safe for rack app
thanks :)
Hi @devvit I'd be happy to review two separate PR: one for controller_info and one for enabled_for_controller. Each PR should include documentation and tests. Thanks!
controller_info
enabled_for_controller
closed, PR created
Sir, as I saw,
paper_trail
now userequest_store
for context storage completely,currently,
paper_trail-sinatra
only containswhodunnit
,I can add a few lines simply to get more functions:
Is it correct?
request_store
is thread-safe for rack appthanks :)