gitlabhq/app/controllers/search_controller.rb

11 lines
308 B
Ruby
Raw Normal View History

2012-03-16 00:14:39 +01:00
class SearchController < ApplicationController
def show
result = SearchContext.new(current_user.project_ids, 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