aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/controllers/admin_request_controller.rb15
-rw-r--r--config/routes.rb1
2 files changed, 0 insertions, 16 deletions
diff --git a/app/controllers/admin_request_controller.rb b/app/controllers/admin_request_controller.rb
index 3ad2713d2..699c79b47 100644
--- a/app/controllers/admin_request_controller.rb
+++ b/app/controllers/admin_request_controller.rb
@@ -24,21 +24,6 @@ class AdminRequestController < AdminController
:per_page => 100
end
- def list_old_unclassified
- @info_requests = WillPaginate::Collection.create((params[:page] or 1), 50) do |pager|
- info_requests = InfoRequest.find_old_unclassified(:conditions => ["prominence = 'normal'"],
- :limit => pager.per_page,
- :offset => pager.offset)
- # inject the result array into the paginated collection:
- pager.replace(info_requests)
-
- unless pager.total_entries
- # the pager didn't manage to guess the total count, do it manually
- pager.total_entries = InfoRequest.count_old_unclassified(:conditions => ["prominence = 'normal'"])
- end
- end
- end
-
def show
@info_request = InfoRequest.find(params[:id])
# XXX is this *really* the only way to render a template to a
diff --git a/config/routes.rb b/config/routes.rb
index 028562b4b..f630083aa 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -183,7 +183,6 @@ Alaveteli::Application.routes.draw do
####
#### AdminRequest controller
- match '/admin/unclassified' => 'admin_request#list_old_unclassified', :as => :admin_request_list_old_unclassified
match '/admin/request' => 'admin_request#index', :as => :admin_request_index
match '/admin/request/list' => 'admin_request#list', :as => :admin_request_list
match '/admin/request/show/:id' => 'admin_request#show', :as => :admin_request_show