Deprecation warnings (#12774).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11139 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2013-01-08 20:18:12 +00:00
parent b29d74f9d5
commit 9394d739b1
11 changed files with 20 additions and 20 deletions
+2 -2
View File
@@ -51,12 +51,12 @@ class TimelogController < ApplicationController
format.html {
# Paginate results
@entry_count = scope.count
@entry_pages = Paginator.new self, @entry_count, per_page_option, params['page']
@entry_pages = Paginator.new @entry_count, per_page_option, params['page']
@entries = scope.all(
:include => [:project, :activity, :user, {:issue => :tracker}],
:order => sort_clause,
:limit => @entry_pages.items_per_page,
:offset => @entry_pages.current.offset
:offset => @entry_pages.offset
)
@total_hours = scope.sum(:hours).to_f