Browse Source

shorten long line of IssueCategoriesController

git-svn-id: http://svn.redmine.org/redmine/trunk@20357 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.2.0
Toshi MARUYAMA 3 years ago
parent
commit
8a0ca5db22
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      app/controllers/issue_categories_controller.rb

+ 4
- 1
app/controllers/issue_categories_controller.rb View File

@@ -60,7 +60,10 @@ class IssueCategoriesController < ApplicationController
redirect_to_settings_in_projects
end
format.js
format.api { render :action => 'show', :status => :created, :location => issue_category_path(@category) }
format.api do
render(:action => 'show', :status => :created,
:location => issue_category_path(@category))
end
end
else
respond_to do |format|

Loading…
Cancel
Save