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
@@ -55,7 +55,7 @@ class TimelogController < ApplicationController
@entries = scope.all(
:include => [:project, :activity, :user, {:issue => :tracker}],
:order => sort_clause,
:limit => @entry_pages.items_per_page,
:limit => @entry_pages.per_page,
:offset => @entry_pages.offset
)
@total_hours = scope.sum(:hours).to_f