module ActiveLdap::Associations::ClassMethods

def association_accessor(name, &make_association)

def association_accessor(name, &make_association)
  define_method("__make_#{name}") do
    make_association.call(self)
  end
  associations << name
  association_reader(name, &make_association)
  association_writer(name, &make_association)
end