diff options
author | Louise Crow <louise.crow@gmail.com> | 2012-09-26 12:19:24 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2012-09-26 12:19:24 +0100 |
commit | d4109a8506ec9fc5e78559989f6d0bc1d388fdc5 (patch) | |
tree | 57e4db45ca5d178c59f00d31a39433b149311415 /app/controllers/general_controller.rb | |
parent | 8c0bea8841f05ec3318aee6f06be28c587c9128d (diff) | |
parent | a7290f92d26e95588919c1ddeaeda3a56c7fee0d (diff) |
Merge branch 'develop', remote-tracking branch 'origin' into feature/preview_emails
Diffstat (limited to 'app/controllers/general_controller.rb')
-rw-r--r-- | app/controllers/general_controller.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/general_controller.rb b/app/controllers/general_controller.rb index 839064fcd..5a7b006a0 100644 --- a/app/controllers/general_controller.rb +++ b/app/controllers/general_controller.rb @@ -32,8 +32,7 @@ class GeneralController < ApplicationController if body_short_names.empty? # This is too slow @popular_bodies = PublicBody.find(:all, - :select => "public_bodies.*, (select count(*) from info_requests where info_requests.public_body_id = public_bodies.id) as c", - :order => "c desc", + :order => "info_requests_count desc", :limit => 32, :conditions => conditions, :joins => :translations |