mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-15 11:48:07 +01:00
Rename RecurringTodo#has_next_todo to continues_recurring?
This clarifies the intent of the method.
This commit is contained in:
parent
036c34f266
commit
88e7798db6
3 changed files with 11 additions and 11 deletions
|
|
@ -658,7 +658,7 @@ class RecurringTodo < ActiveRecord::Base
|
|||
return nil
|
||||
end
|
||||
|
||||
def has_next_todo(previous)
|
||||
def continues_recurring?(previous)
|
||||
return self.occurences_count < self.number_of_occurences unless self.number_of_occurences.nil?
|
||||
return true if self.end_date.nil? || self.ends_on == 'no_end_date'
|
||||
|
||||
|
|
@ -673,7 +673,7 @@ class RecurringTodo < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def done?(end_date)
|
||||
!has_next_todo(end_date)
|
||||
!continues_recurring?(end_date)
|
||||
end
|
||||
|
||||
def toggle_completion!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue