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

app/controllers/members_controller.rb

index dbfeb1b0bd82710663722f88734e5807d2389c66..8789469f6b1279ffa32231f7f6954a94b6911360 100644 (file)
@@ -67,18 +67,18 @@ class MembersController < ApplicationController
 
     respond_to do |format|
       format.html { redirect_to_settings_in_projects }
-      format.js {
+      format.js do
         @members = members
         @member = Member.new
-      }
-      format.api {
+      end
+      format.api do
         @member = members.first
         if @member.valid?
           render :action => 'show', :status => :created, :location => membership_url(@member)
         else
           render_validation_errors(@member)
         end
-      }
+      end
     end
   end
 
@@ -94,13 +94,13 @@ class MembersController < ApplicationController
     respond_to do |format|
       format.html { redirect_to_settings_in_projects }
       format.js
-      format.api {
+      format.api do
         if saved
           render_api_ok
         else
           render_validation_errors(@member)
         end
-      }
+      end
     end
   end
 
@@ -111,13 +111,13 @@ class MembersController < ApplicationController
     respond_to do |format|
       format.html { redirect_to_settings_in_projects }
       format.js
-      format.api {
+      format.api do
         if @member.destroyed?
           render_api_ok
         else
           head :unprocessable_entity
         end
-      }
+      end
     end
   end