counters for dashboard panel
This commit is contained in:
parent
5d2bd5ec3a
commit
7f76d6cfee
4 changed files with 23 additions and 3 deletions
|
@ -86,6 +86,10 @@ class User < ActiveRecord::Base
|
|||
)
|
||||
end
|
||||
end
|
||||
|
||||
def cared_merge_requests
|
||||
MergeRequest.where("author_id = :id or assignee_id = :id", :id => self.id).opened
|
||||
end
|
||||
end
|
||||
# == Schema Information
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue