From 1532fa52a64c49bca95ed9beca2feb5ea7234d84 Mon Sep 17 00:00:00 2001 From: sureshsonii <92368713+sureshsonii@users.noreply.github.com> Date: Tue, 11 Oct 2022 17:40:46 +0530 Subject: [PATCH] Update list.rb --- app/models/list.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/app/models/list.rb b/app/models/list.rb index 98eb9f8..cfffb18 100644 --- a/app/models/list.rb +++ b/app/models/list.rb @@ -9,5 +9,21 @@ def done_tasks tasks.where(done: true).order("updated_at DESC") end + def done_tasks1 + tasks.where(done: true).order("updated_at DESC") + end + + def done_tasks2 + tasks.where(done: true).order("updated_at DESC") + end + + def done_tasks3 + tasks.where(done: true).order("updated_at DESC") + end + + def done_tasks4 + tasks.where(done: true).order("updated_at DESC") + end + end