Project

General

Profile

« Previous | Next » 

Revision fa46f30b

Added by Marc Dequènes about 15 years ago

  • ID fa46f30b197a72426bf0afe6ccc6dd5d21459c72

[-] cleanup

View differences:

lib/ldap_shadows/object.rb
ActiveLdap::DistinguishedName.parse(self.base)
end
def self.find(*args)
obj_stuff = super(*args)
if obj_stuff.is_a? Array
obj_list = obj_stuff
else
obj_list = [obj_stuff]
end
obj_list.each do |obj|
obj.load_initial_attribute_list unless obj.nil?
end
return obj_stuff
end
def load_initial_attribute_list
@initial_attribute_list ||= self.nonempty_attributes
end
def name
name = self[dn_attribute].is_a?(Array) ? self[dn_attribute][0] : self[dn_attribute]
name.strip
......
end
def fetch_relations_data(rel_list, expert_attributes)
p rel_list
rel_data = rel_list.collect do |rel|
data = self.send(rel)
if data.is_a? Enumerable
......
end
Hash[rel_data.compact]
end
def load_initial_attribute_list
@initial_attribute_list ||= self.nonempty_attributes
end
end
end

Also available in: Unified diff