]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Layout/SpaceAfterComma in app/controllers/documents_controller.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 24 Nov 2019 16:45:12 +0000 (16:45 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 24 Nov 2019 16:45:12 +0000 (16:45 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19272 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/documents_controller.rb

index 27cb1b27f65a44a0a41a2963a02f790138d6d6d7..6facd7b14c2122e05afd197e7b9d895960f21294 100644 (file)
@@ -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}