From: Toshi MARUYAMA Date: Mon, 9 Nov 2020 13:24:29 +0000 (+0000) Subject: use "do end" instead of {} at IssueCategoriesController X-Git-Tag: 4.2.0~506 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=796fc2db9d3a9ffb4c3a67d66661cb08b149d7d0;p=redmine.git use "do end" instead of {} at IssueCategoriesController git-svn-id: http://svn.redmine.org/redmine/trunk@20312 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/controllers/issue_categories_controller.rb b/app/controllers/issue_categories_controller.rb index a6995ae95..8c1e05750 100644 --- a/app/controllers/issue_categories_controller.rb +++ b/app/controllers/issue_categories_controller.rb @@ -78,10 +78,10 @@ class IssueCategoriesController < ApplicationController @category.safe_attributes = params[:issue_category] if @category.save respond_to do |format| - format.html { + format.html do flash[:notice] = l(:notice_successful_update) redirect_to_settings_in_projects - } + end format.api { render_api_ok } end else