foodsoft/app/controllers/admin/base_controller.rb
2010-03-22 01:58:37 +01:00

10 lines
329 B
Ruby

class Admin::BaseController < ApplicationController
before_filter :authenticate_admin
def index
@user = self.current_user
@groups = Group.find(:all, :limit => 10, :order => 'created_on DESC', :conditions => {:deleted_at => nil})
@users = User.find(:all, :limit => 10, :order => 'created_on DESC')
end
end