Class: Admin::BaseController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/admin/base_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



4
5
6
7
8
# File 'app/controllers/admin/base_controller.rb', line 4

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