about summary refs log tree commit diff
path: root/app/views/api/v1/statuses/context.rabl
blob: e9176dc29ff5a1c3557466f0b330d6f7d33bdf70 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
object false

node :ancestors do
  @ancestors.map do |status|
    partial('api/v1/statuses/show', object: status)
  end
end

node :descendants do
  @descendants.map do |status|
    partial('api/v1/statuses/show', object: status)
  end
end