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