Fully embrace Ruby 1.9 hash syntax
Didn't bother with files in db/, config/, or features/
This commit is contained in:
parent
1413c23c50
commit
7754189187
257 changed files with 1449 additions and 1449 deletions
|
@ -8,8 +8,8 @@ class SearchController < ApplicationController
|
|||
|
||||
if query.present?
|
||||
@projects = current_user.projects.search(query).limit(10)
|
||||
@merge_requests = MergeRequest.where(:project_id => current_user.project_ids).search(query).limit(10)
|
||||
@issues = Issue.where(:project_id => current_user.project_ids).search(query).limit(10)
|
||||
@merge_requests = MergeRequest.where(project_id: current_user.project_ids).search(query).limit(10)
|
||||
@issues = Issue.where(project_id: current_user.project_ids).search(query).limit(10)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue