From 0fca1c6066b798b0f85b198c36b2c684424de592 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 7 Nov 2020 12:31:33 +0000 Subject: [PATCH] use "do end" instead of {} at AutoCompletesController git-svn-id: http://svn.redmine.org/redmine/trunk@20291 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/auto_completes_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/auto_completes_controller.rb b/app/controllers/auto_completes_controller.rb index 3b87d9e81..cd6434fa4 100644 --- a/app/controllers/auto_completes_controller.rb +++ b/app/controllers/auto_completes_controller.rb @@ -53,12 +53,12 @@ class AutoCompletesController < ApplicationController end def format_issues_json(issues) - issues.map {|issue| + issues.map do |issue| { 'id' => issue.id, 'label' => "#{issue.tracker} ##{issue.id}: #{issue.subject.to_s.truncate(255)}", 'value' => issue.id } - } + end end end -- 2.39.5