Show only 2 tasks of the same periodic_task_group at dashboard

This commit is contained in:
Patrick Gansterer 2017-10-20 01:01:12 +02:00
parent ad96159336
commit 47e4a9afdf
2 changed files with 13 additions and 3 deletions

View file

@ -8,7 +8,7 @@ class HomeController < ApplicationController
@next_tasks = Task.order(:due_date).next_assigned_tasks_for(current_user)
# count tasks with no responsible person
# tasks for groups the current user is not a member are ignored
@unassigned_tasks = Task.order(:due_date).unassigned_tasks_for(current_user)
@unassigned_tasks = Task.order(:due_date).next_unassigned_tasks_for(current_user)
end
def profile