]> source.dussan.org Git - redmine.git/commitdiff
use "do end" instead of {} at EmailAddressesController
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 9 Nov 2020 13:24:52 +0000 (13:24 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 9 Nov 2020 13:24:52 +0000 (13:24 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20315 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/email_addresses_controller.rb

index a2036035ec38f065ce37710a24a06dd6e20b7a71..86bc4dbc2ba31c8ea87ed847d4d2c99b5f07780d 100644 (file)
@@ -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