Prepare for API v1 (PR #570)
This commit is contained in:
parent
d9ae0d11b0
commit
fd96b6ccc1
21 changed files with 536 additions and 217 deletions
|
|
@ -1,10 +1,10 @@
|
|||
class Admin::BaseController < ApplicationController
|
||||
before_filter :authenticate_admin
|
||||
|
||||
|
||||
def index
|
||||
@user = self.current_user
|
||||
@user = current_user
|
||||
@groups = Group.where(deleted_at: nil).order('created_on DESC').limit(10)
|
||||
@users = User.order('created_on DESC').limit(10)
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue