mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +02:00
Hidden projects are not stalled. Update the comment.
This commit is contained in:
parent
48de4b1b00
commit
beb18ac1f4
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ class Project < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def stalled?
|
||||
# stalled is active/hidden project with no active todos
|
||||
# Stalled projects are active projects with no active next actions
|
||||
return false if self.completed? || self.hidden?
|
||||
return self.todos.deferred_or_blocked.empty? && self.todos.not_deferred_or_blocked.empty?
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue