diff options
author | Peter Kozak <spag@golwen.net> | 2013-04-29 15:40:13 +0200 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-04-29 15:40:13 +0200 |
commit | f7ecf4866953cbfb0bc2a092b8547192f2943242 (patch) | |
tree | 3de7e63a4073392c7b1159e8475c8591ecba1448 /app/controllers | |
parent | 92fd1b2e6611aaf0910b9c5a80908e9160559bcc (diff) |
list users of specified parent only
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/users_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 99e2fc5..971ce4b 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -9,7 +9,7 @@ class UsersController < ApplicationController helper_method :sort_column, :sort_descending def index - @users = User.order(sort_column + ' ' + (sort_descending ? 'DESC' : 'ASC')).paginate( + @users = @parent.users.order(sort_column + ' ' + (sort_descending ? 'DESC' : 'ASC')).paginate( :page => @pagination_page_number, :per_page => GsParameter.get('DEFAULT_PAGINATION_ENTRIES_PER_PAGE') ) |