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
|
2014-02-20 15:04:53 +01:00
|
|
|
@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
|