Module: Authlogic::ActsAsAuthentic::PersistenceToken::Methods::ClassMethods
- Defined in:
- lib/authlogic/acts_as_authentic/persistence_token.rb
Overview
Class level methods for the persistence token.
Instance Method Summary collapse
-
#forget_all ⇒ Object
Resets ALL persistence tokens in the database, which will require all users to reauthenticate.
Instance Method Details
#forget_all ⇒ Object
Resets ALL persistence tokens in the database, which will require all users to reauthenticate.
34 35 36 37 38 39 40 41 42 43 |
# File 'lib/authlogic/acts_as_authentic/persistence_token.rb', line 34 def forget_all # Paginate these to save on memory records = nil i = 0 begin records = find(:all, :limit => 50, :offset => i) records.each { |record| record.forget! } i += 50 end while !records.blank? end |