fix projects sorting; fix Postgresql issue with LIMIT and DISTINCT; fix query performance
This commit is contained in:
parent
b339c747a9
commit
31bf0cd876
3 changed files with 4 additions and 4 deletions
|
@ -54,7 +54,7 @@ class GroupsController < ApplicationController
|
|||
end
|
||||
|
||||
def projects
|
||||
@projects ||= current_user.projects_with_events.where(group_id: @group.id)
|
||||
@projects ||= current_user.projects_sorted_by_activity.where(group_id: @group.id)
|
||||
end
|
||||
|
||||
def project_ids
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue