summaryrefslogtreecommitdiff
path: root/app/helpers/todos_helper.rb
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2016-06-17 18:37:43 +0000
committerYorick Peterse <yorickpeterse@gmail.com>2016-06-17 18:37:43 +0000
commitbb4a1ef6c1ed4d367e6126ad64033e0286da6f15 (patch)
tree4f77213b3440eb91756366603884a42a5b3e11d3 /app/helpers/todos_helper.rb
parent39a3ab7f3aa919fd196c284b1a35953e5e5d04ba (diff)
parentf6bfa46daae3a00ca6f74abb6e6eddc9eac96197 (diff)
downloadgitlab-ce-bb4a1ef6c1ed4d367e6126ad64033e0286da6f15.tar.gz
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.rb4
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)