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
26 27 28 29 |
# File 'app/controllers/directory_controller.rb', line 26 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
3 4 5 6 |
# File 'app/controllers/directory_controller.rb', line 3 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
9 10 11 12 13 14 15 16 17 |
# File 'app/controllers/directory_controller.rb', line 9 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
20 21 22 23 |
# File 'app/controllers/directory_controller.rb', line 20 def user_groups # render json: User.groups(params[:uid]) render json: [] end |