2010-03-22 01:58:37 +01:00
|
|
|
class Admin::UsersController < Admin::BaseController
|
2011-06-09 22:03:27 +02:00
|
|
|
inherit_resources
|
|
|
|
|
2009-01-12 18:26:09 +01:00
|
|
|
def index
|
2013-09-20 23:18:06 +02:00
|
|
|
@users = User.natural_order
|
2011-06-09 22:03:27 +02:00
|
|
|
|
|
|
|
# if somebody uses the search field:
|
2013-09-20 23:18:06 +02:00
|
|
|
@users = @users.natural_search(params[:user_name]) unless params[:user_name].blank?
|
2011-06-09 22:03:27 +02:00
|
|
|
|
2012-10-15 21:19:17 +02:00
|
|
|
@users = @users.page(params[:page]).per(@per_page)
|
2009-01-12 18:26:09 +01:00
|
|
|
end
|
|
|
|
end
|