context.rabl 210 B

123456789
  1. object @context
  2. node :ancestors do |context|
  3. partial 'api/v1/statuses/index', object: context.ancestors
  4. end
  5. node :descendants do |context|
  6. partial 'api/v1/statuses/index', object: context.descendants
  7. end