From f1e86fb99d2860a48cc8a74da30f40f0fa34e69a Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 24 Sep 2020 16:07:20 +0000 Subject: use "do end" instead of {} at MyController git-svn-id: http://svn.redmine.org/redmine/trunk@20077 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/my_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app') 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 -- cgit v1.2.3