You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
scope:leaves,includes(:descendants_hierarchy).where("#{hierarchy_table_name}.descendant_id is null")
52
+
scope:leaves,includes(:descendants).where("#{hierarchy_table_name}.descendant_id is null")
53
53
end
54
54
end
55
55
@@ -80,7 +80,8 @@ def leaf?
80
80
end
81
81
82
82
defleaves
83
-
self.class.scoped.includes(:descendants_hierarchy).where("#{hierarchy_table_name}.descendant_id is null and #{hierarchy_table_name}.ancestor_id = #{id}")
0 commit comments