diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-07 12:31:33 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-07 12:31:33 +0000 |
commit | 0fca1c6066b798b0f85b198c36b2c684424de592 (patch) | |
tree | 84180f12c6a822b6ea4c87d823b7a3a2059740c5 /app/controllers/auto_completes_controller.rb | |
parent | 8b4e4e76a4cd168ab0c29028e8ae240bd97814d4 (diff) | |
download | redmine-0fca1c6066b798b0f85b198c36b2c684424de592.tar.gz redmine-0fca1c6066b798b0f85b198c36b2c684424de592.zip |
use "do end" instead of {} at AutoCompletesController
git-svn-id: http://svn.redmine.org/redmine/trunk@20291 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/auto_completes_controller.rb')
-rw-r--r-- | app/controllers/auto_completes_controller.rb | 4 |
1 files 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 |