Sha256: 8bf2df041e563b2e32efb6e0095ce89f4dc65d6df904715575d85373b0e231b8
Contents?: true
Size: 901 Bytes
Versions: 19
Compression:
Stored size: 901 Bytes
Contents
class DirectoryController < ApplicationController # Stub method. Override this in your application if you want directory lookups def user #render json: User.directory_attributes(params[:uid]) render json: '' end # Stub method. Override this in your application if you want directory lookups 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 # Stub method. Override this in your application if you want directory lookups def user_groups # render json: User.groups(params[:uid]) render json: [] end # Stub method. Override this in your application if you want directory lookups def group #render json: Group.exists?(params[:cn]) render json: false end end
Version data entries
19 entries across 19 versions & 1 rubygems