Skip to content

Commit 811a71a

Browse files
committed
Fix Current not setting a session in some contexts
1 parent 1e5e5ec commit 811a71a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/current.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class Current < ActiveSupport::CurrentAttributes
55
def session=(value)
66
super(value)
77

8-
if value.present? && account.present?
8+
if value.present?
99
self.identity = session.identity
1010
end
1111
end

0 commit comments

Comments
 (0)