diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-22 12:58:46 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-22 12:58:46 +0000 |
commit | 7d12df241da7e3a9a9a7c529eca1257b9432cd4c (patch) | |
tree | 8463d08d503ff3b9e0d6149c03764c0d4d84f869 | |
parent | 11431dd463492644e1831fb9af59bf5aa3f3a1fc (diff) | |
download | redmine-7d12df241da7e3a9a9a7c529eca1257b9432cd4c.tar.gz redmine-7d12df241da7e3a9a9a7c529eca1257b9432cd4c.zip |
remove spaces inside {} of NewsController
git-svn-id: http://svn.redmine.org/redmine/trunk@20471 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/controllers/news_controller.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/app/controllers/news_controller.rb b/app/controllers/news_controller.rb index 1f5b83eb4..fa6a62244 100644 --- a/app/controllers/news_controller.rb +++ b/app/controllers/news_controller.rb @@ -86,12 +86,12 @@ class NewsController < ApplicationController flash[:notice] = l(:notice_successful_create) redirect_to project_news_index_path(@project) end - format.api { render_api_ok } + format.api {render_api_ok} end else respond_to do |format| - format.html { render :action => 'new' } - format.api { render_validation_errors(@news) } + format.html {render :action => 'new'} + format.api {render_validation_errors(@news)} end end end @@ -109,12 +109,12 @@ class NewsController < ApplicationController flash[:notice] = l(:notice_successful_update) redirect_to news_path(@news) 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(@news) } + format.html {render :action => 'edit'} + format.api {render_validation_errors(@news)} end end end @@ -126,7 +126,7 @@ class NewsController < ApplicationController flash[:notice] = l(:notice_successful_delete) redirect_to project_news_index_path(@project) end - format.api { render_api_ok } + format.api {render_api_ok} end end end |