From: Toshi MARUYAMA Date: Thu, 24 Sep 2020 16:07:20 +0000 (+0000) Subject: use "do end" instead of {} at MyController X-Git-Tag: 4.2.0~738 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f1e86fb99d2860a48cc8a74da30f40f0fa34e69a;p=redmine.git use "do end" instead of {} at MyController git-svn-id: http://svn.redmine.org/redmine/trunk@20077 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/controllers/my_controller.rb b/app/controllers/my_controller.rb index d102f4730..9083b1317 100644 --- a/app/controllers/my_controller.rb +++ b/app/controllers/my_controller.rb @@ -58,10 +58,10 @@ class MyController < ApplicationController @user.pref.save set_language_if_valid @user.language respond_to do |format| - format.html { + format.html do flash[:notice] = l(:notice_account_updated) redirect_to my_account_path - } + end format.api {render_api_ok} end return