Project

General

Profile

« Previous | Next » 

Revision 2d1982bd

Added by Marc Dequènes over 14 years ago

  • ID 2d1982bd108be32c5572c9e44c53bd80b35ace32

[fix] try harder to find item name

View differences:

lib/ldap_shadows/elements/object.rb
end
def name
name = self[dn_attribute].is_a?(Array) ? self[dn_attribute][0] : self[dn_attribute]
name = self[dn_attribute] || self.attributes[dn_attribute] || self.dn
name = name[0] if name.is_a? Array
name.strip
end

Also available in: Unified diff