aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@gmail.com>2013-02-08 14:54:21 +0100
committerJulien Lancelot <julien.lancelot@gmail.com>2013-02-08 14:54:21 +0100
commitfb9e5f23ef74b0378302ea3bb1c61609d8838b3f (patch)
treebcd74aa5241ddd159f5591c1e5ca8cb431643856 /sonar-server
parenta4c135afb016627dfc39c67012893d78466369e5 (diff)
downloadsonarqube-fb9e5f23ef74b0378302ea3bb1c61609d8838b3f.tar.gz
sonarqube-fb9e5f23ef74b0378302ea3bb1c61609d8838b3f.zip
Replace deprecated find(:all, ...) rails call by all(...)
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/controllers/search_controller.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/search_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/search_controller.rb
index 7af3e056539..dc74fc6a705 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/search_controller.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/search_controller.rb
@@ -32,8 +32,7 @@ class SearchController < ApplicationController
bad_request("Minimum search is #{ResourceIndex::MIN_SEARCH_SIZE} characters") if search.empty? || search.to_s.size<ResourceIndex::MIN_SEARCH_SIZE
key = escape_like(search).downcase
- results = ResourceIndex.find(:all,
- :select => 'distinct(resource_id),root_project_id,qualifier,name_size', # optimization to not load unused columns like 'kee'
+ results = ResourceIndex.all(:select => 'distinct(resource_id),root_project_id,qualifier,name_size', # optimization to not load unused columns like 'kee'
:conditions => ["kee like ?", key + '%'],
:order => 'name_size')