about summary refs log tree commit diff
path: root/app/controllers/admin
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-12-03 19:08:07 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-12-03 19:08:07 +0100
commitec44cff9a2e7e5a522f2c0685745f1ab6d58436f (patch)
treeb9dcbf763577a4a329db2377240f693cdec3ba14 /app/controllers/admin
parent816284d73924ceb453c76d571bcb315be91b2b08 (diff)
Admin accounts page lists accounts
Diffstat (limited to 'app/controllers/admin')
-rw-r--r--app/controllers/admin/accounts_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/admin/accounts_controller.rb b/app/controllers/admin/accounts_controller.rb
index e84799040..92ebffc87 100644
--- a/app/controllers/admin/accounts_controller.rb
+++ b/app/controllers/admin/accounts_controller.rb
@@ -6,8 +6,10 @@ class Admin::AccountsController < ApplicationController
   layout 'public'
 
   def index
+    @accounts = Account.order('domain ASC, username ASC').paginate(page: params[:page], per_page: 40)
   end
 
   def show
+    @account = Account.find(params[:id])
   end
 end