lib/activeldap.rb in ruby-activeldap-0.5.3 vs lib/activeldap.rb in ruby-activeldap-0.5.4
- old
+ new
@@ -1,9 +1,9 @@
#!/usr/bin/ruby -W0
# = Ruby/ActiveLDAP
#
-# "Ruby/ActiveLDAP" Copyright (C) 2004 Will Drewry mailto:will@alum.bu.edu
+# "Ruby/ActiveLDAP" Copyright (C) 2004,2005 Will Drewry mailto:will@alum.bu.edu
#
# == Introduction
#
# Ruby/ActiveLDAP is a novel way of interacting with LDAP. Most interaction with
# LDAP is done using clunky LDIFs, web interfaces, or with painful APIs that
@@ -793,10 +793,19 @@
# If that's still not enough, you can access the
# Ruby/LDAP connection object using the class method Base.connection. You can
# do all of your LDAP specific calls here and then continue about your normal
# Ruby/ActiveLDAP business afterward.
#
+#
+# ==== Reusing LDAP::Entry objects without reusing the LDAP connection
+#
+# You can call Klass.new(entry) where Klass is some subclass of Base and
+# enty is an LDAP::entry. This use of 'new' is is meant for use from
+# within find_all and find, but you can also use it in tandem with advanced
+# LDAP queries.
+#
+# See tests/benchmark for more insight.
#
# ==== Juggling multiple LDAP connections
#
# In the same vein as the last tip, you can use multiple LDAP connections by
# saving old connections and then resetting them as follows:
@@ -896,10 +905,10 @@
require 'activeldap/associations'
require 'activeldap/configuration'
require 'activeldap/schema2'
module ActiveLDAP
- VERSION = "0.5.3"
+ VERSION = "0.5.4"
end
ActiveLDAP::Base.class_eval do
include ActiveLDAP::Configuration
include ActiveLDAP::Associations