mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-24 01:11:12 +00:00
shorten long line of ProjectsController
git-svn-id: http://svn.redmine.org/redmine/trunk@20356 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
c4ee00ca65
commit
67d8f2e5df
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user