2015-01-22 20:51:35 -05:00
|
|
|
module Projects
|
|
|
|
class AutocompleteService < BaseService
|
|
|
|
def initialize(project)
|
|
|
|
@project = project
|
|
|
|
end
|
|
|
|
|
|
|
|
def issues
|
2015-01-23 17:38:20 -05:00
|
|
|
@project.issues.opened.select([:iid, :title])
|
2015-01-22 20:51:35 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
def merge_requests
|
2015-01-23 17:38:20 -05:00
|
|
|
@project.merge_requests.opened.select([:iid, :title])
|
2015-01-22 20:51:35 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|