diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-02-17 11:35:42 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-02-17 11:35:42 +0000 |
commit | d8e4a8fb320625474e20901b4070763bd697807a (patch) | |
tree | 8012a67044ef6f463a4e07b256acc956ff226d36 /app/controllers/boards_controller.rb | |
parent | c17ec1643c005036870b45c7b496bbbb3a9784be (diff) | |
download | redmine-d8e4a8fb320625474e20901b4070763bd697807a.tar.gz redmine-d8e4a8fb320625474e20901b4070763bd697807a.zip |
Use #per_page instead of #items_per_page.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11425 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/boards_controller.rb')
-rw-r--r-- | app/controllers/boards_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/boards_controller.rb b/app/controllers/boards_controller.rb index 2ecbc63eb..47f5c0f07 100644 --- a/app/controllers/boards_controller.rb +++ b/app/controllers/boards_controller.rb @@ -46,7 +46,7 @@ class BoardsController < ApplicationController @topics = @board.topics. reorder("#{Message.table_name}.sticky DESC"). includes(:last_reply). - limit(@topic_pages.items_per_page). + limit(@topic_pages.per_page). offset(@topic_pages.offset). order(sort_clause). preload(:author, {:last_reply => :author}). |