Skip to content

Commit

Permalink
Use to_adapter.get in Warden::SessionSerializer#deserialize
Browse files Browse the repository at this point in the history
  • Loading branch information
jm81 authored and josevalim committed Oct 16, 2010
1 parent 31170b9 commit 0aa21dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/devise/rails/warden_compat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def deserialize(keys)
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/
Expand Down

0 comments on commit 0aa21dc

Please sign in to comment.