foodsoft/app/controllers/admin/base_controller.rb
2018-10-13 20:16:35 +02:00

10 lines
268 B
Ruby

class Admin::BaseController < ApplicationController
before_filter :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