From 2575805d3e41ae51694ced0b3f3477a5b3c311ae Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 9 Nov 2019 09:19:02 +0000 Subject: [PATCH] cleanup: rubocop: fix Layout/BlockEndNewline in app/controllers/auth_sources_controller.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19004 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .rubocop_todo.yml | 1 - app/controllers/auth_sources_controller.rb | 21 +++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index eb77f71e0..30eb9b9b0 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -25,7 +25,6 @@ Layout/BlockAlignment: # Cop supports --auto-correct. Layout/BlockEndNewline: Exclude: - - 'app/controllers/auth_sources_controller.rb' - 'app/controllers/files_controller.rb' - 'app/models/message.rb' diff --git a/app/controllers/auth_sources_controller.rb b/app/controllers/auth_sources_controller.rb index fa23252bf..295dfd156 100644 --- a/app/controllers/auth_sources_controller.rb +++ b/app/controllers/auth_sources_controller.rb @@ -78,16 +78,17 @@ class AuthSourcesController < ApplicationController def autocomplete_for_new_user results = AuthSource.search(params[:term]) - - render :json => results.map {|result| { - 'value' => result[:login], - 'label' => "#{result[:login]} (#{result[:firstname]} #{result[:lastname]})", - 'login' => result[:login].to_s, - 'firstname' => result[:firstname].to_s, - 'lastname' => result[:lastname].to_s, - 'mail' => result[:mail].to_s, - 'auth_source_id' => result[:auth_source_id].to_s - }} + render :json => results.map {|result| + { + 'value' => result[:login], + 'label' => "#{result[:login]} (#{result[:firstname]} #{result[:lastname]})", + 'login' => result[:login].to_s, + 'firstname' => result[:firstname].to_s, + 'lastname' => result[:lastname].to_s, + 'mail' => result[:mail].to_s, + 'auth_source_id' => result[:auth_source_id].to_s + } + } end private -- 2.39.5