Revision f0a9fa9e
Added by Marc Dequènes about 14 years ago
- ID f0a9fa9ecfb370af1132a236d8bf9866c416cb23
lib/ldap_shadows/lang_additions.rb | ||
---|---|---|
end
|
||
|
||
def nonempty_attributes
|
||
self.attributes.collect{|key, val| val.blank? ? nil : key }.compact
|
||
self.attributes.collect{|key, val| (val.blank? and not val.is_a?(FalseClass)) ? nil : key }.compact
|
||
end
|
||
|
||
def missing_attributes
|
Also available in: Unified diff
[fix] boolean values always defines nonempty_attributes