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
This commit is contained in:
Jean-Philippe Lang
2013-02-17 11:35:42 +00:00
parent c17ec1643c
commit d8e4a8fb32
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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}).