From f6cfc6812119576bf6902a2d61fa1edb5b4886a0 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 16 Nov 2020 12:22:02 +0000 Subject: [PATCH] remove spaces inside {} of UsersController git-svn-id: http://svn.redmine.org/redmine/trunk@20393 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/users_controller.rb | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 1de5bc2b4..9ff242709 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 ->{find_user(false)}, :only => :show before_action :find_user, :only => [:edit, :update, :destroy] accept_api_auth :index, :show, :create, :update, :destroy @@ -119,13 +119,13 @@ class UsersController < ApplicationController format.html do flash[:notice] = l(:notice_user_successful_create, :id => view_context.link_to(@user.login, user_path(@user))) if params[:continue] - attrs = {:generate_password => @user.generate_password } + attrs = {:generate_password => @user.generate_password} redirect_to new_user_path(:user => attrs) else redirect_to edit_user_path(@user) end end - format.api { render :action => 'show', :status => :created, :location => user_url(@user) } + format.api {render :action => 'show', :status => :created, :location => user_url(@user)} end else @auth_sources = AuthSource.all @@ -133,8 +133,8 @@ class UsersController < ApplicationController @user.password = @user.password_confirmation = nil respond_to do |format| - format.html { render :action => 'new' } - format.api { render_validation_errors(@user) } + format.html {render :action => 'new'} + format.api {render_validation_errors(@user)} end end end @@ -168,7 +168,7 @@ class UsersController < ApplicationController flash[:notice] = l(:notice_successful_update) redirect_to_referer_or edit_user_path(@user) end - format.api { render_api_ok } + format.api {render_api_ok} end else @auth_sources = AuthSource.all @@ -177,8 +177,8 @@ class UsersController < ApplicationController @user.password = @user.password_confirmation = nil respond_to do |format| - format.html { render :action => :edit } - format.api { render_validation_errors(@user) } + format.html {render :action => :edit} + format.api {render_validation_errors(@user)} end end end @@ -186,8 +186,8 @@ class UsersController < ApplicationController def destroy @user.destroy respond_to do |format| - format.html { redirect_back_or_default(users_path) } - format.api { render_api_ok } + format.html {redirect_back_or_default(users_path)} + format.api {render_api_ok} end end