lib/treequel/branch.rb in treequel-1.1.0 vs lib/treequel/branch.rb in treequel-1.1.1
- old
+ new
@@ -476,10 +476,10 @@
def object_classes( *additional_classes )
schema = self.directory.schema
oc_oids = self[:objectClass] || []
oc_oids |= additional_classes.collect {|str| str.to_sym }
- oc_oids << :top if oc_oids.empty?
+ oc_oids << 'top' if oc_oids.empty?
oclasses = []
oc_oids.each do |oid|
oc = schema.object_classes[ oid.to_sym ] or
raise Treequel::Error, "schema doesn't have a %p objectClass" % [ oid ]