2010-03-22 01:58:37 +01:00
|
|
|
class Admin::BaseController < ApplicationController
|
2009-01-06 11:49:19 +01:00
|
|
|
before_filter :authenticate_admin
|
|
|
|
|
|
|
|
def index
|
|
|
|
@user = self.current_user
|
2009-02-12 21:38:41 +01:00
|
|
|
@groups = Group.find(:all, :limit => 10, :order => 'created_on DESC', :conditions => {:deleted_at => nil})
|
2009-01-14 12:46:01 +01:00
|
|
|
@users = User.find(:all, :limit => 10, :order => 'created_on DESC')
|
2009-01-06 11:49:19 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|