Sha256: d8688ead5530b8b86e8acbd1a53599c768d647bd3f425d72d4339084ecdd1494
Contents?: true
Size: 526 Bytes
Versions: 1
Compression:
Stored size: 526 Bytes
Contents
class DirectoryController < ApplicationController before_filter :login_required, :except => [:populate] before_filter :empty_entries_required, :only => [:populate] def index @entries = Entry.search(:limit => 10) end def populate ActiveLdap::Populate.ensure_base ActiveLdap::Populate.ensure_ou(LdapUser.prefix) end private def empty_entries_required return true if Entry.empty? flash.now[:notice] = _("Populating is only for initialization") redirect_to(top_url) false end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-activeldap-0.8.3.1 | examples/al-admin/app/controllers/directory_controller.rb |