Commit d910a777 authored by Valery Sizov's avatar Valery Sizov

Using IssuablesFinder(s) for UI counters

parent 0c3908c3
......@@ -193,7 +193,8 @@ module IssuablesHelper
private
def assigned_issuables_count(assignee, issuable_type, state)
assignee.public_send("assigned_#{issuable_type}").public_send(state).count
params = { assignee_id: assignee.id, state: state }
Object::const_get("#{issuable_type.to_s.camelize}Finder").new(current_user, params).execute.count
end
def sidebar_gutter_collapsed?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment