Fix project filter for MR on dashboard

This commit is contained in:
Dmitriy Zaporozhets 2013-02-19 09:43:41 +02:00
parent ba937b2b3d
commit bfc359ca61
4 changed files with 22 additions and 9 deletions

View file

@ -267,7 +267,7 @@ class User < ActiveRecord::Base
end
def cared_merge_requests
MergeRequest.where("author_id = :id or assignee_id = :id", id: self.id)
MergeRequest.cared(self)
end
# Remove user from all projects and