7841245795
Conflicts: Gemfile.lock
10 lines
277 B
Ruby
10 lines
277 B
Ruby
class Admin::BaseController < ApplicationController
|
|
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)
|
|
end
|
|
|
|
end
|