[Ruby-activeldap-discuss] changing objectClass

David Morton mortonda at dgrmm.net
Sat Dec 29 23:54:50 EST 2007


I can get an array of the objectClass elements by:

@user  User.find(:first)
@user.classes


but  I can't seem to figure out how to modify that array.  I used to do:

@user.object_class << "someNewObjectClass"
@user.object_class -= ['someOtherObjectClass']


but the -= operation results in an error now.   How do I modify the
objectClass array?


More information about the Ruby-activeldap-discuss mailing list