mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
Use indifferent access for session retaining
Using the TestSession at least, slice is mixing symbols ans strings
This commit is contained in:
committed by
Oliver Günther
parent
69899243ce
commit
2cda65e828
@@ -136,7 +136,11 @@ module Users
|
||||
end
|
||||
|
||||
def retained_session_values
|
||||
controller.session.to_h.slice *(default_retained_keys + omniauth_provider_keys)
|
||||
controller
|
||||
.session
|
||||
.to_h
|
||||
.with_indifferent_access
|
||||
.slice *(default_retained_keys + omniauth_provider_keys)
|
||||
end
|
||||
|
||||
def omniauth_provider_keys
|
||||
|
||||
Reference in New Issue
Block a user