From: Toshi MARUYAMA Date: Sun, 24 Nov 2019 16:45:12 +0000 (+0000) Subject: cleanup: rubocop: fix Layout/SpaceAfterComma in app/controllers/documents_controller.rb X-Git-Tag: 4.2.0~1368 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d81846ccc9fc89711f05b447ae25e7f9bd610e8c;p=redmine.git 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 --- 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}