Class: Aven::AuthController

Inherits:
ApplicationController show all
Defined in:
app/controllers/aven/auth_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#current_workspace, #current_workspace=

Methods included from ApplicationHelper

#aven_importmap_tags, #view_component

Instance Method Details

#logoutObject



3
4
5
6
7
8
9
10
# File 'app/controllers/aven/auth_controller.rb', line 3

def logout
  sign_out
  begin
    redirect_to(main_app.root_path, notice: "You have been signed out successfully.")
  rescue NoMethodError
    redirect_to(root_path, notice: "You have been signed out successfully.")
  end
end