Directly call matching route instead of redirecting for themes

This commit is contained in:
Andreas Nedbal 2022-09-04 14:53:54 +02:00 committed by Andreas Nedbal
parent 4b4deecf9c
commit dc91d91c2e
1 changed files with 1 additions and 1 deletions

View File

@ -41,6 +41,6 @@ class Settings::ThemeController < ApplicationController
def destroy
current_user.theme.destroy!
redirect_to settings_theme_path
redirect_to edit_settings_theme_path
end
end