mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-11 21:56:19 +10:00
12 lines
265 B
Ruby
12 lines
265 B
Ruby
module Projects
|
|
class AutocompleteService < BaseService
|
|
def issues
|
|
@project.issues.visible_to_user(current_user).opened.select([:iid, :title])
|
|
end
|
|
|
|
def merge_requests
|
|
@project.merge_requests.opened.select([:iid, :title])
|
|
end
|
|
end
|
|
end
|