diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2016-06-17 21:37:43 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-06-17 23:02:49 +0300 |
commit | 1ddd787c062dc8c29507821d24a854633af86e52 (patch) | |
tree | 3b053cfdd491ac60e759f2d961d517b30e307b51 /app/helpers/todos_helper.rb | |
parent | 16171b7d2cf1cc31af626da81ff50daac50560d9 (diff) |
Merge branch '18034-cache-todo-counter' into 'master'
Cache todo counters (pending/done)
See merge request !4438
Diffstat (limited to 'app/helpers/todos_helper.rb')
-rw-r--r-- | app/helpers/todos_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/todos_helper.rb b/app/helpers/todos_helper.rb index 9adf5ef29f7..c7aeed4b9fc 100644 --- a/app/helpers/todos_helper.rb +++ b/app/helpers/todos_helper.rb @@ -1,10 +1,10 @@ module TodosHelper def todos_pending_count - current_user.todos.pending.count + current_user.todos_pending_count end def todos_done_count - current_user.todos.done.count + current_user.todos_done_count end def todo_action_name(todo) |