Conventional order and remove redundant filtering of actions

This commit is contained in:
David Heinemeier Hansson
2025-11-18 15:49:50 +01:00
parent 7d86aae67e
commit 9ddcfa5c4b
+3 -3
View File
@@ -1,11 +1,11 @@
class UsersController < ApplicationController
before_action :set_user, only: %i[ show edit update destroy ]
before_action :set_user
before_action :ensure_permission_to_change_user, only: %i[ update destroy ]
def edit
def show
end
def show
def edit
end
def update