gitlab-org--gitlab-foss/app/services/projects/autocomplete_service.rb
2015-01-23 14:38:20 -08:00

15 lines
297 B
Ruby

module Projects
class AutocompleteService < BaseService
def initialize(project)
@project = project
end
def issues
@project.issues.opened.select([:iid, :title])
end
def merge_requests
@project.merge_requests.opened.select([:iid, :title])
end
end
end