summaryrefslogtreecommitdiffstats
path: root/app/controllers/versions_controller.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-18 16:16:37 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-18 16:16:37 +0000
commitccd610021ba8ab40a64eb1f6cb6c328eaddf1a1b (patch)
treecc76c23d11438d988e36ef72d6cc6d20eebe43c5 /app/controllers/versions_controller.rb
parent460c037e60408014c8ae27b45ec592b02e827973 (diff)
downloadredmine-ccd610021ba8ab40a64eb1f6cb6c328eaddf1a1b.tar.gz
redmine-ccd610021ba8ab40a64eb1f6cb6c328eaddf1a1b.zip
remove spaces inside {} of VersionsController
git-svn-id: http://svn.redmine.org/redmine/trunk@20426 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/versions_controller.rb')
-rw-r--r--app/controllers/versions_controller.rb20
1 files changed, 10 insertions, 10 deletions
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