Skip to content

Commit 3d3d7d0

Browse files
committed
Remove show method from SessionsController
1 parent fe0a77c commit 3d3d7d0

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

app/controllers/my/sessions_controller.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ module My
3232
class SessionsController < ::ApplicationController
3333
before_action :require_login
3434
no_authorization_required! :index,
35-
:show,
3635
:destroy
3736

3837
self._model_object = ::Sessions::UserSession
@@ -59,8 +58,6 @@ def index
5958
end
6059
end
6160

62-
def show; end
63-
6461
def destroy
6562
@session.delete
6663

config/routes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@
899899
get "/deletion_info" => "users#deletion_info", as: "delete_my_account_info"
900900
post "/oauth/revoke_application/:application_id" => "oauth/grants#revoke_application", as: "revoke_my_oauth_application"
901901

902-
resources :sessions, controller: "my/sessions", as: "my_sessions", only: %i[index show destroy]
902+
resources :sessions, controller: "my/sessions", as: "my_sessions", only: %i[index destroy]
903903
resources :auto_login_tokens, controller: "my/auto_login_tokens", as: "my_auto_login_tokens", only: %i[destroy]
904904

905905
get "/banner" => "my/enterprise_banners#show", as: "show_enterprise_banner"

0 commit comments

Comments
 (0)