From: Toshi MARUYAMA Date: Sat, 7 Nov 2020 12:31:33 +0000 (+0000) Subject: use "do end" instead of {} at AutoCompletesController X-Git-Tag: 4.2.0~526 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0fca1c6066b798b0f85b198c36b2c684424de592;p=redmine.git use "do end" instead of {} at AutoCompletesController git-svn-id: http://svn.redmine.org/redmine/trunk@20291 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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