Sha256: b967f296d86bb270930146815e9337edd6169bd45cf5c377fd549a1cc3e541e0

Contents?: true

Size: 929 Bytes

Versions: 17

Compression:

Stored size: 929 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

17 entries across 17 versions & 1 rubygems

Version Path
sufia-4.0.0.beta2 app/controllers/directory_controller.rb
sufia-4.0.0.beta1 app/controllers/directory_controller.rb
sufia-3.7.2 app/controllers/directory_controller.rb
sufia-3.7.1 app/controllers/directory_controller.rb
sufia-3.7.0 app/controllers/directory_controller.rb
sufia-3.6.1 app/controllers/directory_controller.rb
sufia-3.6.0 app/controllers/directory_controller.rb
sufia-3.5.0 app/controllers/directory_controller.rb
sufia-3.4.0 app/controllers/directory_controller.rb
sufia-3.4.0.rc4 app/controllers/directory_controller.rb
sufia-3.4.0.rc3 app/controllers/directory_controller.rb
sufia-3.3.1 app/controllers/directory_controller.rb
sufia-3.4.0.rc2 app/controllers/directory_controller.rb
sufia-3.4.0.rc1 app/controllers/directory_controller.rb
sufia-3.3.0 app/controllers/directory_controller.rb
sufia-3.2.1 app/controllers/directory_controller.rb
sufia-3.1.3 app/controllers/directory_controller.rb