Browse Source

use "do end" instead of {} at AutoCompletesController

git-svn-id: http://svn.redmine.org/redmine/trunk@20291 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.2.0
Toshi MARUYAMA 3 years ago
parent
commit
0fca1c6066
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      app/controllers/auto_completes_controller.rb

+ 2
- 2
app/controllers/auto_completes_controller.rb View 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

Loading…
Cancel
Save