diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-13 12:40:10 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-13 12:40:10 +0000 |
commit | 67d8f2e5df6e365f841b0bd7df37e25ab16aa81d (patch) | |
tree | 4c595647e9362000bcd8f2bf43cd36d303818def | |
parent | c4ee00ca65638ef7a42fde067481e69b4744eaa2 (diff) | |
download | redmine-67d8f2e5df6e365f841b0bd7df37e25ab16aa81d.tar.gz redmine-67d8f2e5df6e365f841b0bd7df37e25ab16aa81d.zip |
shorten long line of ProjectsController
git-svn-id: http://svn.redmine.org/redmine/trunk@20356 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/controllers/projects_controller.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index ad75be5bf..7730f51b4 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -275,7 +275,11 @@ class ProjectsController < ApplicationController if api_request? || params[:confirm] @project_to_destroy.destroy respond_to do |format| - format.html { redirect_to User.current.admin? ? admin_projects_path : projects_path } + format.html do + redirect_to( + User.current.admin? ? admin_projects_path : projects_path + ) + end format.api { render_api_ok } end end |