1
0
puyopuyotetr.is/app/controllers/admin/accounts_controller.rb

16 lines
322 B
Ruby
Raw Normal View History

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