# File lib/symetrie_com/acts_as_better_nested_set.rb, line 625 def direct_child_of?(parent, scope = {}) if !scope.empty? && parent.respond_to?(:direct_child_by_id) parent.direct_child_by_id(self.id, scope).is_a?(self.class) else parent.respond_to?(parent_col_name) && self[parent_col_name] == parent.id end end