Skip to content

Commit

Permalink
Update AR calls
Browse files Browse the repository at this point in the history
  • Loading branch information
bnauta committed Nov 14, 2013
1 parent f897e2a commit b23bda0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/authlogic/acts_as_authentic/persistence_token.rb
Expand Up @@ -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?
Expand Down

0 comments on commit b23bda0

Please sign in to comment.