From 783ade73d773e45c621cae9009378d4cc2650623 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 17 Dec 2020 13:10:13 +0000 Subject: [PATCH] use 'lambda' instead of '->{}' at UsersController git-svn-id: http://svn.redmine.org/redmine/trunk@20657 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/users_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 507381233..c12704e2e 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -22,7 +22,7 @@ class UsersController < ApplicationController self.main_menu = false before_action :require_admin, :except => :show - before_action ->{find_user(false)}, :only => :show + before_action lambda {find_user(false)}, :only => :show before_action :find_user, :only => [:edit, :update, :destroy] accept_api_auth :index, :show, :create, :update, :destroy -- 2.39.5