2016-11-30 15:32:26 +01:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class Admin::AccountsController < ApplicationController
|
|
|
|
before_action :require_admin!
|
|
|
|
|
|
|
|
layout 'public'
|
|
|
|
|
|
|
|
def index
|
2016-12-03 19:08:07 +01:00
|
|
|
@accounts = Account.order('domain ASC, username ASC').paginate(page: params[:page], per_page: 40)
|
2016-11-30 15:32:26 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
def show
|
2016-12-03 19:08:07 +01:00
|
|
|
@account = Account.find(params[:id])
|
2016-11-30 15:32:26 +01:00
|
|
|
end
|
|
|
|
end
|