Module: ActiveLdap::Operations::ClassOnlyUpdate
- Defined in:
- lib/active_ldap/operations.rb
Instance Method Summary collapse
Instance Method Details
#update(dn, attributes, options = {}) ⇒ Object
608 609 610 611 612 613 614 615 616 617 618 619 620 621 |
# File 'lib/active_ldap/operations.rb', line 608 def update(dn, attributes, ={}) if dn.is_a?(Array) i = -1 dns = dn dns.collect do |_dn| i += 1 update(_dn, attributes[i], ) end else object = find(dn, ) object.update_attributes(attributes) object end end |