From 2046f0a8e27ebc1ddc3b5a288ce83c016db1bb51 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 9 Nov 2020 13:24:06 +0000 Subject: [PATCH] use "do end" instead of {} at MembersController git-svn-id: http://svn.redmine.org/redmine/trunk@20309 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/members_controller.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/controllers/members_controller.rb b/app/controllers/members_controller.rb index dbfeb1b0b..8789469f6 100644 --- a/app/controllers/members_controller.rb +++ b/app/controllers/members_controller.rb @@ -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 -- 2.39.5