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 re-authenticate.
Instance Method Details
#forget_all ⇒ Object
Resets ALL persistence tokens in the database, which will require all users to re-authenticate.
35 36 37 38 |
# File 'lib/authlogic/acts_as_authentic/persistence_token.rb', line 35 def forget_all # Paginate these to save on memory find_each(batch_size: 50) { |record| record.forget! } end |