# File lib/symetrie_com/acts_as_better_nested_set.rb, line 668 def ancestors_and_self_through(other, scope = {}) first, last = [self, other].sort self.class.find_in_nested_set(:all, { :conditions => "#{scope_condition} AND (#{last[left_col_name]} BETWEEN #{prefixed_left_col_name} AND #{prefixed_right_col_name}) AND #{prefixed_left_col_name} >= #{first[left_col_name]}", :order => "#{prefixed_left_col_name}" }, scope) end