From: Toshi MARUYAMA Date: Thu, 17 Dec 2020 13:10:13 +0000 (+0000) Subject: use 'lambda' instead of '->{}' at UsersController X-Git-Tag: 4.2.0~162 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=783ade73d773e45c621cae9009378d4cc2650623;p=redmine.git use 'lambda' instead of '->{}' at UsersController git-svn-id: http://svn.redmine.org/redmine/trunk@20657 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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