0
0
Fork 0

Fix #50 - Order ancestors/descendants by tree path

This commit is contained in:
Eugen Rochko 2016-09-21 23:18:28 +02:00
parent d709151781
commit c0e9603c92
3 changed files with 12 additions and 6 deletions

View file

@ -8,8 +8,8 @@ class Api::StatusesController < ApiController
def context
@status = Status.find(params[:id])
@ancestors = @status.ancestors.with_includes.with_counters.to_a
@descendants = @status.descendants.with_includes.with_counters.to_a
@ancestors = @status.ancestors
@descendants = @status.descendants
end
def create