lib/authlogic/session/session.rb in authlogic-1.3.9 vs lib/authlogic/session/session.rb in authlogic-1.4.0

- old
+ new

@@ -13,10 +13,10 @@ # Tries to validate the session from information in the session def valid_session? persistence_token, record_id = session_credentials if !persistence_token.blank? if record_id - record = search_for_record("find_by_id", record_id) + record = search_for_record("find_by_#{klass.primary_key}", record_id) self.unauthorized_record = record if record && record.send(persistence_token_field) == persistence_token else # For backwards compatibility, will eventually be removed, just need to let the sessions update theirself record = search_for_record("find_by_#{persistence_token_field}", persistence_token) if record \ No newline at end of file