Skip to content

Conversation

@rosa
Copy link
Member

@rosa rosa commented Jan 15, 2026

When it's set. Also, store it in current attributes for convenience.

When it's set. Also, store it in current attributes for convenience.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@@ -1,8 +1,16 @@
class Current < ActiveSupport::CurrentAttributes
attribute :user, :request
attribute :session, :user, :request
Copy link
Member Author

@rosa rosa Jan 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't delegate user to session because bots don't have a session; just set user when we set the session.

@rosa rosa merged commit dde94b0 into main Jan 16, 2026
11 checks passed
@rosa rosa deleted the delete-sessions-on-logout branch January 16, 2026 08:31
@kevinmcconnell
Copy link
Collaborator

Nice! 👏👏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants