From 8a0ca5db226872f250c65e6ddd4ff812439d1a76 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 13 Nov 2020 12:40:17 +0000 Subject: shorten long line of IssueCategoriesController git-svn-id: http://svn.redmine.org/redmine/trunk@20357 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/issue_categories_controller.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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| -- cgit v1.2.3