Browse Source

use 'lambda' instead of '->{}' at UsersController

git-svn-id: http://svn.redmine.org/redmine/trunk@20657 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.2.0
Toshi MARUYAMA 3 years ago
parent
commit
783ade73d7
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      app/controllers/users_controller.rb

+ 1
- 1
app/controllers/users_controller.rb View File

@@ -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


Loading…
Cancel
Save