From f76bd5f9c3016eaebacbe2101b55242bbbc73543 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 24 Sep 2020 16:07:12 +0000 Subject: remove spaces inside {} of MyController git-svn-id: http://svn.redmine.org/redmine/trunk@20076 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/my_controller.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'app/controllers/my_controller.rb') diff --git a/app/controllers/my_controller.rb b/app/controllers/my_controller.rb index ecf8e81ab..d102f4730 100644 --- a/app/controllers/my_controller.rb +++ b/app/controllers/my_controller.rb @@ -62,13 +62,13 @@ class MyController < ApplicationController flash[:notice] = l(:notice_account_updated) redirect_to my_account_path } - format.api { render_api_ok } + format.api {render_api_ok} end return else respond_to do |format| - format.html { render :action => :account } - format.api { render_validation_errors(@user) } + format.html {render :action => :account} + format.api {render_validation_errors(@user)} end end end @@ -169,7 +169,7 @@ class MyController < ApplicationController if @user.pref.add_block @block @user.pref.save respond_to do |format| - format.html { redirect_to my_page_path } + format.html {redirect_to my_page_path} format.js end else @@ -185,7 +185,7 @@ class MyController < ApplicationController @user.pref.remove_block @block @user.pref.save respond_to do |format| - format.html { redirect_to my_page_path } + format.html {redirect_to my_page_path} format.js end end -- cgit v1.2.3