Sha256: 433cb88acd119ae12d5aaa4e63928c2b1ee0bdeb128fea1f96dd0992aa63aca3

Contents?: true

Size: 431 Bytes

Versions: 7

Compression:

Stored size: 431 Bytes

Contents

require 'active_ldap/association/collection'

module ActiveLdap
  module Association
    class Children < Collection
      private
      def insert_entry(entry)
        entry.dn = [entry.id, @owner.dn].join(",")
        entry.save
      end

      def find_target
        @owner.find(:all, :base => @owner.dn, :scope => :one)
      end

      def delete_entries(entries)
        entries.each(&:destroy)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
activeldap-1.1.0 lib/active_ldap/association/children.rb
activeldap-0.10.0 lib/active_ldap/association/children.rb
activeldap-0.9.0 lib/active_ldap/association/children.rb
activeldap-1.0.0 lib/active_ldap/association/children.rb
activeldap-1.0.2 lib/active_ldap/association/children.rb
activeldap-1.0.9 lib/active_ldap/association/children.rb
activeldap-1.0.1 lib/active_ldap/association/children.rb