@father = Hierarchy.find(:first, :conditions => ['label = ?', 'father'])
@father.children.each do |child|
puts @father.object_id == child.parent.object_id
end
I would have thought the results here would be all true
.
Instead they are all false
.
Why does ActiveRecord work this way instead of recognizing that these are the same Ruby objects?