From b23bda030f023e3412e8fd3f5ffe4c1513825a94 Mon Sep 17 00:00:00 2001 From: bnauta Date: Thu, 14 Nov 2013 13:03:39 -0500 Subject: [PATCH] Update AR calls --- lib/authlogic/acts_as_authentic/persistence_token.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/authlogic/acts_as_authentic/persistence_token.rb b/lib/authlogic/acts_as_authentic/persistence_token.rb index 4fd6f3f0..3d497689 100644 --- a/lib/authlogic/acts_as_authentic/persistence_token.rb +++ b/lib/authlogic/acts_as_authentic/persistence_token.rb @@ -36,7 +36,7 @@ def forget_all records = nil i = 0 begin - records = find(:all, :limit => 50, :offset => i) + records = limit(50).offset(i) records.each { |record| record.forget! } i += 50 end while !records.blank?