Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #19 from sdalu/patch-2

Convertion to LDAP Value
  • Loading branch information...
commit 07b87d1c7221f9367429de30efc3bc14943db56a 2 parents cd01d7d + 94f9c6d
Christian Meier authored

Showing 1 changed file with 6 additions and 0 deletions. Show diff stats Hide diff stats

  1. +6 0 lib/adapters/ldap_adapter.rb
6 lib/adapters/ldap_adapter.rb
@@ -280,6 +280,12 @@ def update_resource(resource, attributes)
280 280 array_actions
281 281 end
282 282 else
  283 + value = case value
  284 + when NilClass then nil
  285 + when TrueClass then 'TRUE'
  286 + when FalseClass then 'FALSE'
  287 + else value
  288 + end
283 289 if resource.model.multivalue_field == property.field.to_sym
284 290 if value.nil?
285 291 actions << [:delete, field, resource.attribute_get(property.name).to_s]

0 comments on commit 07b87d1

Please sign in to comment.
Something went wrong with that request. Please try again.