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?