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