mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Use to_adapter.get in Warden::SessionSerializer#deserialize
This commit is contained in:
parent
31170b9100
commit
0aa21dca4c
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ class Warden::SessionSerializer
|
|||
klass, id, salt = keys
|
||||
|
||||
begin
|
||||
record = klass.constantize.to_adapter.find_first({ :id => id.first })
|
||||
record = klass.constantize.to_adapter.get(id)
|
||||
record if record && record.authenticatable_salt == salt
|
||||
rescue NameError => e
|
||||
if e.message =~ /uninitialized constant/
|
||||
|
|
Loading…
Reference in a new issue