summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-12-17 13:10:13 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-12-17 13:10:13 +0000
commit783ade73d773e45c621cae9009378d4cc2650623 (patch)
treecaeb29facc8f9afa5327aa861729e4782a8e546c /app/controllers
parent6f17c3340351a3dfd92017ae9cde829f37e7e475 (diff)
downloadredmine-783ade73d773e45c621cae9009378d4cc2650623.tar.gz
redmine-783ade73d773e45c621cae9009378d4cc2650623.zip
use 'lambda' instead of '->{}' at UsersController
git-svn-id: http://svn.redmine.org/redmine/trunk@20657 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/users_controller.rb2
1 files changed, 1 insertions, 1 deletions
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