diff options
author | Robin Houston <robin.houston@gmail.com> | 2012-01-19 13:53:24 +0000 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2012-01-19 13:53:24 +0000 |
commit | 79c39c2a493824590c1862816649bc62e718fe19 (patch) | |
tree | 1b51e901f4aa4fd6c72e6ecbd3563fc07b27e1eb /app/controllers/request_controller.rb | |
parent | 22b2db48c005be1d1b87dd6b58f830a2a74d2108 (diff) | |
parent | bf66cd1d1d4faa249c692f13543e43f2bd6b0c03 (diff) |
Merge branch 'wdtk' of https://github.com/sebbacon/alaveteli into wdtk
Conflicts:
app/controllers/application_controller.rb
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r-- | app/controllers/request_controller.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index 1c7aeedcc..90c1f416d 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -155,6 +155,13 @@ class RequestController < ApplicationController if @view == "recent" return redirect_to request_list_all_path(:action => "list", :view => "all", :page => @page), :status => :moved_permanently end + + # Temporary patch + # Later pages are very expensive to load + if @page > 100 + raise "Sorry. No pages after 100 today." + end + params[:latest_status] = @view query = make_query_from_params @title = _("View and search requests") |