diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-13 12:40:17 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-13 12:40:17 +0000 |
commit | 8a0ca5db226872f250c65e6ddd4ff812439d1a76 (patch) | |
tree | 98cc7cc83aecc04f2f2a423aae7828aba836e4de | |
parent | 67d8f2e5df6e365f841b0bd7df37e25ab16aa81d (diff) | |
download | redmine-8a0ca5db226872f250c65e6ddd4ff812439d1a76.tar.gz redmine-8a0ca5db226872f250c65e6ddd4ff812439d1a76.zip |
shorten long line of IssueCategoriesController
git-svn-id: http://svn.redmine.org/redmine/trunk@20357 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/controllers/issue_categories_controller.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/controllers/issue_categories_controller.rb b/app/controllers/issue_categories_controller.rb index 8c1e05750..acd3abbde 100644 --- a/app/controllers/issue_categories_controller.rb +++ b/app/controllers/issue_categories_controller.rb @@ -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| |