lib/simple_auth/session.rb in simple_auth-2.0.3 vs lib/simple_auth/session.rb in simple_auth-2.0.4

- old
+ new

@@ -131,10 +131,12 @@ false end end def record - @record ||= model.authenticate(credential, password) + @record ||= model + .find_by_credential(credential) + .try(:authenticate, password) end def save self.class.destroy!