From: Toshi MARUYAMA Date: Wed, 18 Nov 2020 16:16:37 +0000 (+0000) Subject: remove spaces inside {} of VersionsController X-Git-Tag: 4.2.0~392 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ccd610021ba8ab40a64eb1f6cb6c328eaddf1a1b;p=redmine.git remove spaces inside {} of VersionsController git-svn-id: http://svn.redmine.org/redmine/trunk@20426 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/controllers/versions_controller.rb b/app/controllers/versions_controller.rb index 28c0a0275..c6420445d 100644 --- a/app/controllers/versions_controller.rb +++ b/app/controllers/versions_controller.rb @@ -108,9 +108,9 @@ class VersionsController < ApplicationController end else respond_to do |format| - format.html { render :action => 'new' } - format.js { render :action => 'new' } - format.api { render_validation_errors(@version) } + format.html {render :action => 'new'} + format.js {render :action => 'new'} + format.api {render_validation_errors(@version)} end end end @@ -130,12 +130,12 @@ class VersionsController < ApplicationController flash[:notice] = l(:notice_successful_update) redirect_back_or_default settings_project_path(@project, :tab => 'versions') end - format.api { render_api_ok } + format.api {render_api_ok} end else respond_to do |format| - format.html { render :action => 'edit' } - format.api { render_validation_errors(@version) } + format.html {render :action => 'edit'} + format.api {render_validation_errors(@version)} end end end @@ -152,8 +152,8 @@ class VersionsController < ApplicationController if @version.deletable? @version.destroy respond_to do |format| - format.html { redirect_back_or_default settings_project_path(@project, :tab => 'versions') } - format.api { render_api_ok } + format.html {redirect_back_or_default settings_project_path(@project, :tab => 'versions')} + format.api {render_api_ok} end else respond_to do |format| @@ -161,14 +161,14 @@ class VersionsController < ApplicationController flash[:error] = l(:notice_unable_delete_version) redirect_to settings_project_path(@project, :tab => 'versions') end - format.api { head :unprocessable_entity } + format.api {head :unprocessable_entity} end end end def status_by respond_to do |format| - format.html { render :action => 'show' } + format.html {render :action => 'show'} format.js end end