Module: Authlogic::ActsAsAuthentic::PersistenceToken::Methods::ClassMethods

Defined in:
lib/authlogic/acts_as_authentic/persistence_token.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#forget_allObject

Resets ALL persistence tokens in the database, which will require all users to re-authenticate.



41
42
43
44
# File 'lib/authlogic/acts_as_authentic/persistence_token.rb', line 41

def forget_all
  # Paginate these to save on memory
  find_each(batch_size: 50, &:forget!)
end