]> source.dussan.org Git - redmine.git/commitdiff
use "do end" instead of {} at MyController
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 24 Sep 2020 16:07:20 +0000 (16:07 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 24 Sep 2020 16:07:20 +0000 (16:07 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20077 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/my_controller.rb

index d102f4730b72a91d27fbccdf53737ea4c29ad925..9083b1317481aa84bc6c3e394195204923448de1 100644 (file)
@@ -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