Project

General

Profile

« Previous | Next » 

Revision 73a3d129

Added by Marc Dequènes about 15 years ago

  • ID 73a3d129b059194e9a121a56f7410c1fbd138e57

[fix] check better if a field value has changed or not

View differences:

lib/ldap_shadows/elements/object.rb
# if val is nil or the latest value is removed, then the attribute is removed from the object,
case op
when '='
val = [val] if old_val.is_a? Enumerable
return false if val == old_val
val = [val] if old_val.is_a? Enumerable
self.send(field + "=", val)
when '+='

Also available in: Unified diff