gitlab-org--gitlab-foss/app/controllers/search_controller.rb

11 lines
308 B
Ruby
Raw Normal View History

2012-03-15 19:14:39 -04:00
class SearchController < ApplicationController
def show
result = SearchContext.new(current_user.project_ids, params).execute
2012-07-31 01:32:49 -04:00
@projects = result[:projects]
@merge_requests = result[:merge_requests]
@issues = result[:issues]
@wiki_pages = result[:wiki_pages]
2012-03-15 19:14:39 -04:00
end
end