Search improved

This commit is contained in:
Dmitriy Zaporozhets 2012-04-14 11:16:11 +03:00
parent 8dc2989665
commit 5f31989a05
4 changed files with 51 additions and 22 deletions

View file

@ -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
#