mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-25 00:24:07 +01:00
add recurring_todos to done_overview and fix routes
This commit is contained in:
parent
aa3fbf0d1e
commit
c61238933c
5 changed files with 27 additions and 22 deletions
|
|
@ -82,6 +82,8 @@ class Project < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def note_count
|
||||
# TODO: test this for eager and not eager loading!!!
|
||||
return 0 if notes.size == 0
|
||||
cached_note_count || notes.count
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue