diff options
author | Henare Degan <henare.degan@gmail.com> | 2013-03-03 17:10:49 +1100 |
---|---|---|
committer | Henare Degan <henare.degan@gmail.com> | 2013-03-03 17:10:49 +1100 |
commit | eb4e833901e2d9e4133103c85be2084d90505df9 (patch) | |
tree | ec6730824bd821ffbfa3817ef36663baf53d0cec /app/controllers/admin_request_controller.rb | |
parent | 56afb23d947c53cdb99ba8f1e88a47e8a8eb552c (diff) |
In will_paginate 3 you can call paginate directly on the model
Diffstat (limited to 'app/controllers/admin_request_controller.rb')
-rw-r--r-- | app/controllers/admin_request_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin_request_controller.rb b/app/controllers/admin_request_controller.rb index 56fd731fe..fc2cf8e97 100644 --- a/app/controllers/admin_request_controller.rb +++ b/app/controllers/admin_request_controller.rb @@ -17,7 +17,7 @@ class AdminRequestController < AdminController if @query info_requests = InfoRequest.where(["lower(title) like lower('%'||?||'%')", @query]) else - info_requests = InfoRequest.all + info_requests = InfoRequest end @info_requests = info_requests.paginate :order => "created_at desc", :page => params[:page], |