aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2012-01-06 17:14:02 +0000
committerSeb Bacon <seb.bacon@gmail.com>2012-01-06 17:14:02 +0000
commit766d696d5b914520b0b9367e9b9a9decab87ea5f (patch)
treef6d2a07fd1e4f8e1091d5df765b68140db5e47ca
parent2413ed353d6bc8b8be53aa17f78c7960775eef45 (diff)
now we have so many public bodies, there's not much point listing so many on one page and having massive page download sizes
-rw-r--r--app/controllers/public_body_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/public_body_controller.rb b/app/controllers/public_body_controller.rb
index 62229a441..c31134641 100644
--- a/app/controllers/public_body_controller.rb
+++ b/app/controllers/public_body_controller.rb
@@ -129,7 +129,7 @@ class PublicBodyController < ApplicationController
end
PublicBody.with_locale(@locale) do
@public_bodies = PublicBody.paginate(
- :order => "public_body_translations.name", :page => params[:page], :per_page => 1000, # fit all councils on one page
+ :order => "public_body_translations.name", :page => params[:page], :per_page => 100,
:conditions => conditions,
:joins => :translations
)