diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-17 18:23:30 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-17 18:23:30 +0000 |
commit | 85fb937a4ef0429924163b6c6ea17ed6027c81c9 (patch) | |
tree | f434034c6c38be29244c1b823b50bfa9a4291bd4 /app/controllers/trackers_controller.rb | |
parent | 1cf379f370def8e843975b5b7f0610207cac369b (diff) | |
download | redmine-85fb937a4ef0429924163b6c6ea17ed6027c81c9.tar.gz redmine-85fb937a4ef0429924163b6c6ea17ed6027c81c9.zip |
Use scoped models for pagination.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11027 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/trackers_controller.rb')
-rw-r--r-- | app/controllers/trackers_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/trackers_controller.rb b/app/controllers/trackers_controller.rb index 602ea5288..2811929fa 100644 --- a/app/controllers/trackers_controller.rb +++ b/app/controllers/trackers_controller.rb @@ -25,7 +25,7 @@ class TrackersController < ApplicationController def index respond_to do |format| format.html { - @tracker_pages, @trackers = paginate :trackers, :per_page => 10, :order => 'position' + @tracker_pages, @trackers = paginate Tracker.sorted, :per_page => 10 render :action => "index", :layout => false if request.xhr? } format.api { |