diff options
author | Henare Degan <henare.degan@gmail.com> | 2013-03-15 15:40:50 +1100 |
---|---|---|
committer | Henare Degan <henare.degan@gmail.com> | 2013-03-15 15:47:36 +1100 |
commit | 67bfa6a05079ae2f6642bb8eb20fd8d342124f53 (patch) | |
tree | 94bfd59d7fc25d50b42f2c5f820827f3773e858c | |
parent | a4f111b763863d7a2acc4a6dcd08bebc887eb875 (diff) |
Removed in eadfc265ff83524cbd54b2682f2de818bca24bf4
-rw-r--r-- | app/controllers/admin_request_controller.rb | 15 | ||||
-rw-r--r-- | config/routes.rb | 1 |
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 |