Sha256: d24c6b44bf2bb49bcc4597e3fccf09a7880f0a759cbf82cd7e1b20c7e2a287b0
Contents?: true
Size: 902 Bytes
Versions: 9
Compression:
Stored size: 902 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
9 entries across 9 versions & 1 rubygems