Revision a987d14b
Added by Marc Dequènes about 15 years ago
- ID a987d14bef24ab8eeda765fb3924ceea6b340a05
lib/ldap_shadows/display_utils.rb | ||
---|---|---|
next if rel_data.empty?
|
||
rel_value = rel_data.collect{|g| g.name }.join(", ")
|
||
else
|
||
next if rel_data.target.nil?
|
||
# the exists? method also ensure the object is loaded
|
||
next unless rel_data.exists?
|
||
rel_value = rel_data.name
|
||
end
|
||
puts "#{rel}: " + rel_value
|
Also available in: Unified diff
[fix] for non-enumeration association the object was not loaded when requested with the target() method, so now test existance with exists?() instead which forces loading