Refactor admin settings routes
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This is much cleaner, and semantically more correct.
This commit is contained in:
2024-01-15 19:41:30 +03:00
parent 4fa4ae6b54
commit 51f4556ede
9 changed files with 56 additions and 45 deletions

View File

@@ -20,7 +20,7 @@ class Admin::SettingsController < Admin::BaseController
end
if @errors.any?
render :index and return
render :show and return
end
changed_keys.each do |key|