Return Quantity progenies as a result of partial ordering

Separate scope only provided some optimisation by reducing the count of
records :numbered and should be unnecessary in future once numbering
can be merged with ordering into one recursive query
This commit is contained in:
2025-01-14 21:17:52 +01:00
parent 201359de3e
commit 27038a74d0
2 changed files with 12 additions and 16 deletions

View File

@@ -48,7 +48,7 @@ class QuantitiesController < ApplicationController
@ancestors = @quantity.ancestors
@quantity.depth = @ancestors.length
@self_and_progenies = @quantity.progenies.unshift(@quantity)
@self_and_progenies = @quantity.with_progenies
@before = @self_and_progenies.last.successive
end