gitlabhq/app/controllers/search_controller.rb
2013-01-02 19:46:06 +02:00

11 lines
326 B
Ruby

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