Merge branch 'fix-group-projects-sort' into 'master'

Sort projects by activity at group show page
This commit is contained in:
Dmitriy Zaporozhets 2014-03-06 19:23:14 +00:00
commit c4d4481f4c
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ class GroupsController < ApplicationController
end
def projects
@projects ||= ProjectsFinder.new.execute(current_user, group: group)
@projects ||= ProjectsFinder.new.execute(current_user, group: group).sorted_by_activity.non_archived
end
def project_ids