Displaying 1 result from an estimated 1 matches for "aebel".
Did you mean:
abel
2009 Jan 22
0
ActiveLdap belongs_to and has_many associations
...uot;,
:classes => [''posixGroup'',''top'']
has_many :member, :class => "Person", :wrap => "memberUid"
end
According to ActiveLdap documentation I am testing the association.
irb> me = User.find(''aebel'')
irb> me.groups.each { |group| p group.cn };nil
"develop"
"wheel"
=> nil
So far everything works fine. But when I try to do a membership test, it
fails.
irb> me.groups.member? ''wheel''
=> false
My environment:
Rails 2.2.2
AciveLdap SVN r...