mirror of
https://github.com/redmine/redmine.git
synced 2025-11-02 11:25:55 +01:00
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
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user