From: Toshi MARUYAMA Date: Sun, 22 Nov 2020 13:43:59 +0000 (+0000) Subject: remove spaces inside {} of ProjectsController X-Git-Tag: 4.2.0~336 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=29de4e73b39b92432f8b75a7ddc44e6ade0f4ba0;p=redmine.git remove spaces inside {} of ProjectsController git-svn-id: http://svn.redmine.org/redmine/trunk@20482 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 8750d9265..934a934b5 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -131,8 +131,8 @@ class ProjectsController < ApplicationController end else respond_to do |format| - format.html { render :action => 'new' } - format.api { render_validation_errors(@project) } + format.html {render :action => 'new'} + format.api {render_validation_errors(@project)} end end end @@ -217,7 +217,7 @@ class ProjectsController < ApplicationController flash[:notice] = l(:notice_successful_update) redirect_to settings_project_path(@project, params[:tab]) end - format.api { render_api_ok } + format.api {render_api_ok} end else respond_to do |format| @@ -225,7 +225,7 @@ class ProjectsController < ApplicationController settings render :action => 'settings' end - format.api { render_validation_errors(@project) } + format.api {render_validation_errors(@project)} end end end @@ -253,7 +253,7 @@ class ProjectsController < ApplicationController end respond_to do |format| format.js - format.html { redirect_to project_path(@project) } + format.html {redirect_to project_path(@project)} end end @@ -283,7 +283,7 @@ class ProjectsController < ApplicationController User.current.admin? ? admin_projects_path : projects_path ) end - format.api { render_api_ok } + format.api {render_api_ok} end end # hide project in layout