code/prototype/vendor/bundle/ruby/2.3.0/gems/devise-4.4.3/lib/devise/controllers/sign_in_out.rb
# Sign out all active users or scopes. This helper is useful for signing out all roles
# in one click. This signs out ALL scopes in warden. Returns true if there was at least one logout
# and false if there was no user logged in on all scopes.
Sign out all active users or scopes. This helper is useful for signing out all roles
in one click. This signs out ALL scopes in warden. Returns true if there was at least one logout
and false if there was no user logged in on all scopes.
Sign out all active users or scopes . This helper is useful for signing out all roles in one click . This signs out ALL scopes in warden . Returns true if there was at least one logout and false if there was no user logged in on all scopes .
def sign_out_all_scopes(lock=true)
        users = Devise.mappings.keys.map { |s| warden.user(scope: s, run_callbacks: false) }
        warden.logout
        expire_data_after_sign_out!
        warden.clear_strategies_cache!
        warden.lock! if lock
        users.any?
      end
def sign_out_all_scopes ( lock = true ) users = Devise . mappings . keys . map { | s | warden . user ( scope : s , run_callbacks : false ) } warden . logout expire_data_after_sign_out! warden . clear_strategies_cache! warden . lock! if lock users . any? end
Sign out all active users or scopes.
Sign out all active users or scopes .
lock
<not_specific>