gitlabhq/app/controllers/search_controller.rb

10 lines
266 B
Ruby

class SearchController < ApplicationController
def show
result = SearchContext.new(current_user.project_ids, params).execute
@projects = result[:projects]
@merge_requests = result[:merge_requests]
@issues = result[:issues]
end
end