Class: UsersController

Inherits:
ApplicationController show all
Defined in:
app/controllers/users_controller.rb

Instance Method Summary collapse

Instance Method Details

#currentObject



3
4
5
# File 'app/controllers/users_controller.rb', line 3

def current
  render json: current_user
end

#indexObject



7
8
9
# File 'app/controllers/users_controller.rb', line 7

def index
  render json: current_entity.users
end

#teamsObject



11
12
13
# File 'app/controllers/users_controller.rb', line 11

def teams
  render json: current_user.teams
end