From: Toshi MARUYAMA Date: Mon, 9 Nov 2020 13:24:37 +0000 (+0000) Subject: use "do end" instead of {} at IssueStatusesController X-Git-Tag: 4.2.0~505 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5f0aefbbc2320cf455dbfd2bc957571d799dc896;p=redmine.git use "do end" instead of {} at IssueStatusesController git-svn-id: http://svn.redmine.org/redmine/trunk@20313 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/controllers/issue_statuses_controller.rb b/app/controllers/issue_statuses_controller.rb index 2b81fecf6..dfd3fbb6b 100644 --- a/app/controllers/issue_statuses_controller.rb +++ b/app/controllers/issue_statuses_controller.rb @@ -57,10 +57,10 @@ class IssueStatusesController < ApplicationController @issue_status.safe_attributes = params[:issue_status] if @issue_status.save respond_to do |format| - format.html { + format.html do flash[:notice] = l(:notice_successful_update) redirect_to issue_statuses_path(:page => params[:page]) - } + end format.js { head 200 } end else