From: Toshi MARUYAMA Date: Mon, 9 Nov 2020 13:24:52 +0000 (+0000) Subject: use "do end" instead of {} at EmailAddressesController X-Git-Tag: 4.2.0~503 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fa781b670f8dedeb06c0f53fa86880a3638287a8;p=redmine.git use "do end" instead of {} at EmailAddressesController git-svn-id: http://svn.redmine.org/redmine/trunk@20315 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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