debian-mirror-gitlab/app/services/projects/autocomplete_service.rb
2015-04-26 09:18:37 +02: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