2010-03-22 01:58:37 +01:00
|
|
|
class Admin::BaseController < ApplicationController
|
2009-01-06 11:49:19 +01:00
|
|
|
before_filter :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
|
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
|
2018-10-13 20:16:35 +02:00
|
|
|
|
2009-01-06 11:49:19 +01:00
|
|
|
end
|