]> source.dussan.org Git - redmine.git/commitdiff
shorten long line of IssueCategoriesController
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 13 Nov 2020 12:40:17 +0000 (12:40 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 13 Nov 2020 12:40:17 +0000 (12:40 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20357 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/issue_categories_controller.rb

index 8c1e05750a9b70230c096dacfa0aa5227e3a73bd..acd3abbde3832475ebbd6bfe1c8527065f23a2e0 100644 (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|