Fix Current not setting a session in some contexts

This commit is contained in:
Stanko K.R.
2025-12-04 18:49:14 +01:00
parent 259707bf70
commit 75f273c6fa
+1 -1
View File
@@ -5,7 +5,7 @@ class Current < ActiveSupport::CurrentAttributes
def session=(value)
super(value)
if value.present? && account.present?
if value.present?
self.identity = session.identity
end
end