Project

General

Profile

« Previous | Next » 

Revision 707b1758

Added by Marc Dequènes over 14 years ago

  • ID 707b1758e76afac21e0ce6fcf9b82e9538cbdbb7

[cleanup] minor stuff

View differences:

lib/ldap_shadows/lang_additions.rb
list
end
def nonempty_attributes
self.attributes.collect{|key, val| val.blank? ? nil : key }.compact
end
def missing_attributes
self.must.collect{|attr| attr.name } - self.nonempty_attributes - ['objectClass']
end
def self.objectclasses_attr_list(objectclass_list)
objectclass_list = [objectclass_list] unless objectclass_list.is_a? Array
list = []

Also available in: Unified diff