diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-09-24 16:07:20 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-09-24 16:07:20 +0000 |
commit | f1e86fb99d2860a48cc8a74da30f40f0fa34e69a (patch) | |
tree | 82354a688e9c804343d49160d9dd714858456d64 /app | |
parent | f76bd5f9c3016eaebacbe2101b55242bbbc73543 (diff) | |
download | redmine-f1e86fb99d2860a48cc8a74da30f40f0fa34e69a.tar.gz redmine-f1e86fb99d2860a48cc8a74da30f40f0fa34e69a.zip |
use "do end" instead of {} at MyController
git-svn-id: http://svn.redmine.org/redmine/trunk@20077 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/my_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |