gitlabhq/app/controllers/search_controller.rb
Ilya Baryshev e6524a919e Wiki search
Very basic, using LIKE, and no search snippets.
2012-10-16 23:05:11 +04:00

11 lines
308 B
Ruby

class SearchController < ApplicationController
def show
result = SearchContext.new(current_user.project_ids, params).execute
@projects = result[:projects]
@merge_requests = result[:merge_requests]
@issues = result[:issues]
@wiki_pages = result[:wiki_pages]
end
end