mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
cleanup: rubocop: fix Layout/MultilineBlockLayout in app/controllers/auto_completes_controller.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19045 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
520fd7dd00
commit
05d9791e69
@ -164,11 +164,6 @@ Layout/MultilineArrayBraceLayout:
|
||||
- 'app/helpers/settings_helper.rb'
|
||||
- 'app/helpers/users_helper.rb'
|
||||
|
||||
# Cop supports --auto-correct.
|
||||
Layout/MultilineBlockLayout:
|
||||
Exclude:
|
||||
- 'app/controllers/auto_completes_controller.rb'
|
||||
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: symmetrical, new_line, same_line
|
||||
|
||||
@ -53,7 +53,8 @@ class AutoCompletesController < ApplicationController
|
||||
end
|
||||
|
||||
def format_issues_json(issues)
|
||||
issues.map {|issue| {
|
||||
issues.map {|issue|
|
||||
{
|
||||
'id' => issue.id,
|
||||
'label' => "#{issue.tracker} ##{issue.id}: #{issue.subject.to_s.truncate(60)}",
|
||||
'value' => issue.id
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user