diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-11-21 09:14:05 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-11-21 09:14:05 +0300 |
commit | ab42370af01a52c0ba3cfd97d365c735ecb4c468 (patch) | |
tree | 4a2ca619f46e5019db85421b8a9c1f8fec83e605 /app/helpers/dashboard_helper.rb | |
parent | 23734a715e622f3f028bd565df3be130d3aba737 (diff) | |
download | gitlab-ce-ab42370af01a52c0ba3cfd97d365c735ecb4c468.tar.gz |
Fix sattellites
Diffstat (limited to 'app/helpers/dashboard_helper.rb')
-rw-r--r-- | app/helpers/dashboard_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/dashboard_helper.rb b/app/helpers/dashboard_helper.rb index b73c1c1e1c2..540a73effe8 100644 --- a/app/helpers/dashboard_helper.rb +++ b/app/helpers/dashboard_helper.rb @@ -7,4 +7,8 @@ module DashboardHelper dashboard_merge_requests_path(options) end end + + def entities_per_project project, entity + project.items_for(entity).where(assignee_id: current_user.id).count + end end |