RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Where Does current_user Actually Live?

𝚌𝚞𝚛𝚛𝚎𝚗𝚝_𝚞𝚜𝚎𝚛 reads like global state, but Rails request identity moves through the session, Warden, Devise helpers, optional 𝙲𝚞𝚛𝚛𝚎𝚗𝚝𝙰𝚝𝚝𝚛𝚒𝚋𝚞𝚝𝚎𝚜, and executor cleanup. This article traces that lifecycle and the production bugs that appear when those boundaries are confused.

https://railsrevelry.substack.com/p/where-does-current-user-actually-live

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in