Search improved
This commit is contained in:
parent
8dc2989665
commit
5f31989a05
4 changed files with 51 additions and 22 deletions
|
@ -97,6 +97,10 @@ class User < ActiveRecord::Base
|
|||
def cared_merge_requests
|
||||
MergeRequest.where("author_id = :id or assignee_id = :id", :id => self.id).opened
|
||||
end
|
||||
|
||||
def project_ids
|
||||
projects.map(&:id)
|
||||
end
|
||||
end
|
||||
# == Schema Information
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue