Class: DirectoryController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/directory_controller.rb

Instance Method Summary collapse

Instance Method Details

#groupObject

Stub method. Override this in your application if you want directory lookups



27
28
29
30
# File 'app/controllers/directory_controller.rb', line 27

def group
  #render json: Group.exists?(params[:cn])
  render json: false
end

#userObject

Stub method. Override this in your application if you want directory lookups



4
5
6
7
# File 'app/controllers/directory_controller.rb', line 4

def user
  #render json: User.directory_attributes(params[:uid])
  render json: ''
end

#user_attributeObject

Stub method. Override this in your application if you want directory lookups



10
11
12
13
14
15
16
17
18
# File 'app/controllers/directory_controller.rb', line 10

def user_attribute
  # if params[:attribute] == "groups"
  #   res = User.groups(params[:uid])
  # else
  #   res = User.directory_attributes(params[:uid], params[:attribute])
  # end
  # render json: res
  render json: ''
end

#user_groupsObject

Stub method. Override this in your application if you want directory lookups



21
22
23
24
# File 'app/controllers/directory_controller.rb', line 21

def user_groups
  # render json: User.groups(params[:uid])
  render json: []
end