mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-05 16:58:50 +01:00
Merge pull request #178 from TracksApp/rename-has-next-todo
Rename RecurringTodo#has_next_todo
This commit is contained in:
commit
8db5793bf6
3 changed files with 55 additions and 55 deletions
|
|
@ -1115,7 +1115,7 @@ class TodosController < ApplicationController
|
|||
# if both due and show_from are nil, check for a next todo from now
|
||||
date_to_check = Time.zone.now if date_to_check.nil?
|
||||
|
||||
if recurring_todo.active? && recurring_todo.has_next_todo(date_to_check)
|
||||
if recurring_todo.active? && recurring_todo.continues_recurring?(date_to_check)
|
||||
|
||||
# shift the reference date to yesterday if date_to_check is furher in
|
||||
# the past. This is to make sure we do not get older todos for overdue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue