Included Modules

Class Index [+]

Quicksearch

ActiveLdap::Association::HasMany

Private Instance Methods

delete_entries(entries) click to toggle source
    # 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
find_target() click to toggle source
    # File lib/active_ldap/association/has_many.rb, line 15
15:       def find_target
16:         collect_targets(primary_key)
17:       end
insert_entry(entry) click to toggle source
    # File lib/active_ldap/association/has_many.rb, line 10
10:       def insert_entry(entry)
11:         entry[foreign_key] = @owner[primary_key]
12:         entry.save
13:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.