created-by-me filter for issues inside project. Fixed global project.issues order
This commit is contained in:
parent
15b121d603
commit
115454f3ed
5 changed files with 14 additions and 5 deletions
|
@ -30,6 +30,10 @@ class Issue < ActiveRecord::Base
|
|||
where('assignee_id = :user', user: user.id)
|
||||
end
|
||||
|
||||
def authored(user)
|
||||
where('author_id = :user', user: user.id)
|
||||
end
|
||||
|
||||
def open_for(user)
|
||||
opened.assigned(user)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue