gitlabhq/app/controllers/search_controller.rb

11 lines
326 B
Ruby
Raw Normal View History

2012-03-16 00:14:39 +01:00
class SearchController < ApplicationController
def show
2013-01-02 18:46:06 +01:00
result = SearchContext.new(current_user.authorized_projects.map(&:id), params).execute
2012-07-31 07:32:49 +02:00
@projects = result[:projects]
@merge_requests = result[:merge_requests]
@issues = result[:issues]
@wiki_pages = result[:wiki_pages]
2012-03-16 00:14:39 +01:00
end
end