foodsoft/app/controllers/admin/base_controller.rb

11 lines
268 B
Ruby
Raw Normal View History

class Admin::BaseController < ApplicationController
before_action :authenticate_admin
2018-10-13 20:16:35 +02:00
2009-01-06 11:49:19 +01:00
def index
2018-10-13 20:16:35 +02:00
@user = current_user
@groups = Group.where(deleted_at: nil).order('created_on DESC').limit(10)
@users = User.order('created_on DESC').limit(10)
2009-01-06 11:49:19 +01:00
end
2018-10-13 20:16:35 +02:00
2009-01-06 11:49:19 +01:00
end