From fa781b670f8dedeb06c0f53fa86880a3638287a8 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 9 Nov 2020 13:24:52 +0000 Subject: [PATCH] use "do end" instead of {} at EmailAddressesController git-svn-id: http://svn.redmine.org/redmine/trunk@20315 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/email_addresses_controller.rb | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/app/controllers/email_addresses_controller.rb b/app/controllers/email_addresses_controller.rb index a2036035e..86bc4dbc2 100644 --- a/app/controllers/email_addresses_controller.rb +++ b/app/controllers/email_addresses_controller.rb @@ -37,19 +37,19 @@ class EmailAddressesController < ApplicationController end respond_to do |format| - format.html { + format.html do if saved redirect_to user_email_addresses_path(@user) else index render :action => 'index' end - } - format.js { + end + format.js do @address = nil if saved index render :action => 'index' - } + end end end @@ -60,14 +60,14 @@ class EmailAddressesController < ApplicationController @address.save respond_to do |format| - format.html { + format.html do redirect_to user_email_addresses_path(@user) - } - format.js { + end + format.js do @address = nil index render :action => 'index' - } + end end end @@ -75,14 +75,14 @@ class EmailAddressesController < ApplicationController @address.destroy respond_to do |format| - format.html { + format.html do redirect_to user_email_addresses_path(@user) - } - format.js { + end + format.js do @address = nil index render :action => 'index' - } + end end end -- 2.39.5