gitlab-org--gitlab-foss/app/services/projects/autocomplete_service.rb
2016-03-17 20:55:59 -03:00

11 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