2016-11-03 23:59:31 +11:00
|
|
|
object @context
|
2016-09-16 08:21:51 +10:00
|
|
|
|
2016-11-03 23:59:31 +11:00
|
|
|
node :ancestors do |context|
|
|
|
|
partial 'api/v1/statuses/index', object: context.ancestors
|
2016-09-16 08:21:51 +10:00
|
|
|
end
|
|
|
|
|
2016-11-03 23:59:31 +11:00
|
|
|
node :descendants do |context|
|
|
|
|
partial 'api/v1/statuses/index', object: context.descendants
|
2016-09-16 08:21:51 +10:00
|
|
|
end
|