# File lib/active_ldap/association/has_many.rb, line 19 19: def delete_entries(entries) 20: _foreign_key = foreign_key 21: components = @owner[primary_key, true].reject do |value| 22: value.nil? 23: end 24: filter = [:and, 25: [:and, {_foreign_key => components}], 26: [:or, {foreign_class.dn_attribute => entries.collect(&:id)}]] 27: foreign_class.update_all({_foreign_key => []}, filter) 28: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.