add recurring_todos to done_overview and fix routes

This commit is contained in:
Reinier Balt 2011-06-12 05:38:45 +02:00
parent aa3fbf0d1e
commit c61238933c
5 changed files with 27 additions and 22 deletions

View file

@ -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