summaryrefslogtreecommitdiffstats
path: root/app/controllers/users_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-01-08 20:18:12 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-01-08 20:18:12 +0000
commit9394d739b1fc51735359d41f425c6eaeb4cf38d8 (patch)
tree68a703210ac9842c675ad46db072e80d5581073d /app/controllers/users_controller.rb
parentb29d74f9d5dfcbc348759ae35a40b586f9a862e0 (diff)
downloadredmine-9394d739b1fc51735359d41f425c6eaeb4cf38d8.tar.gz
redmine-9394d739b1fc51735359d41f425c6eaeb4cf38d8.zip
Deprecation warnings (#12774).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11139 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/users_controller.rb')
-rw-r--r--app/controllers/users_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb
index 96c46fa36..698f48f3b 100644
--- a/app/controllers/users_controller.rb
+++ b/app/controllers/users_controller.rb
@@ -45,8 +45,8 @@ class UsersController < ApplicationController
scope = scope.in_group(params[:group_id]) if params[:group_id].present?
@user_count = scope.count
- @user_pages = Paginator.new self, @user_count, @limit, params['page']
- @offset ||= @user_pages.current.offset
+ @user_pages = Paginator.new @user_count, @limit, params['page']
+ @offset ||= @user_pages.offset
@users = scope.order(sort_clause).limit(@limit).offset(@offset).all
respond_to do |format|