foodsoft/app/controllers/admin/base_controller.rb

11 lines
277 B
Ruby
Raw Normal View History

class Admin::BaseController < ApplicationController
2009-01-06 11:49:19 +01:00
before_filter :authenticate_admin
def index
@user = self.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
end