9 lines
267 B
Ruby
9 lines
267 B
Ruby
class Admin::BaseController < ApplicationController
|
|
before_action :authenticate_admin
|
|
|
|
def index
|
|
@user = current_user
|
|
@groups = Group.where(deleted_at: nil).order('created_on DESC').limit(10)
|
|
@users = User.order('created_on DESC').limit(10)
|
|
end
|
|
end
|