Class: Passportist::SessionsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/passportist/sessions_controller.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject



4
5
6
7
# File 'app/controllers/passportist/sessions_controller.rb', line 4

def destroy
  cookies.delete(:auth_token, domain: :all)
  redirect_to main_app.root_url
end