From e2ed50f9718979caa1658d5a67e130ef92fd0d66 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sat, 27 Feb 2021 08:15:08 +0000 Subject: Fix RuboCop offense Style/BlockDelimiters due to r20755 (#33820). git-svn-id: http://svn.redmine.org/redmine/trunk@20757 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/auto_completes_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/auto_completes_controller.rb b/app/controllers/auto_completes_controller.rb index f4b0f1fd2..d4f85be1d 100644 --- a/app/controllers/auto_completes_controller.rb +++ b/app/controllers/auto_completes_controller.rb @@ -81,12 +81,12 @@ class AutoCompletesController < ApplicationController end def format_wiki_pages_json(wiki_pages) - wiki_pages.map {|wiki_page| + wiki_pages.map do |wiki_page| { 'id' => wiki_page.id, 'label' => wiki_page.title.to_s.truncate(255), 'value' => wiki_page.title } - } + end end end -- cgit v1.2.3