Class: DirectoryController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- DirectoryController
- Defined in:
- app/controllers/directory_controller.rb
Instance Method Summary collapse
-
#group ⇒ Object
Stub method.
-
#user ⇒ Object
Stub method.
-
#user_attribute ⇒ Object
Stub method.
-
#user_groups ⇒ Object
Stub method.
Instance Method Details
#group ⇒ Object
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 |
#user ⇒ Object
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_attribute ⇒ Object
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_groups ⇒ Object
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 |