Project

General

Profile

Patch #24296 ยป siblings.diff

Danil Tashkinov, 2016-11-08 13:35

View differences:

lib/redmine/nested_set/traversing.rb (working copy)
# Returns the siblings
def siblings
nested_set_scope.where(:parent_id => parent_id).where("id <> ?", id)
nested_set_scope.where(:parent_id => parent_id).where("#{self.class.table_name}.id <> ?", id)
end
# Returns the ancestors
    (1-1/1)