From d81846ccc9fc89711f05b447ae25e7f9bd610e8c Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sun, 24 Nov 2019 16:45:12 +0000 Subject: [PATCH] cleanup: rubocop: fix Layout/SpaceAfterComma in app/controllers/documents_controller.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19272 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/documents_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/documents_controller.rb b/app/controllers/documents_controller.rb index 27cb1b27f..6facd7b14 100644 --- a/app/controllers/documents_controller.rb +++ b/app/controllers/documents_controller.rb @@ -33,7 +33,7 @@ class DocumentsController < ApplicationController documents = @project.documents.includes(:attachments, :category).to_a case @sort_by when 'date' - documents.sort!{|a,b| b.updated_on <=> a.updated_on} + documents.sort!{|a, b| b.updated_on <=> a.updated_on} @grouped = documents.group_by {|d| d.updated_on.to_date} when 'title' @grouped = documents.group_by {|d| d.title.first.upcase} -- 2.39.5