]> source.dussan.org Git - redmine.git/commitdiff
use "do end" instead of {} at AutoCompletesController
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 7 Nov 2020 12:31:33 +0000 (12:31 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 7 Nov 2020 12:31:33 +0000 (12:31 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20291 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/auto_completes_controller.rb

index 3b87d9e81f85e5802f1629094eabe923c81d689e..cd6434fa4a0f1dd2be0f7ba246444afacaf087e5 100644 (file)
@@ -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