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