parent
0160d1d9b5
commit
562044f36a
@ -1,13 +1,10 @@ |
|||||||
object false |
object @context |
||||||
|
cache false |
||||||
|
|
||||||
node :ancestors do |
node :ancestors do |context| |
||||||
@ancestors.map do |status| |
partial 'api/v1/statuses/index', object: context.ancestors |
||||||
partial('api/v1/statuses/show', object: status) |
|
||||||
end |
|
||||||
end |
end |
||||||
|
|
||||||
node :descendants do |
node :descendants do |context| |
||||||
@descendants.map do |status| |
partial 'api/v1/statuses/index', object: context.descendants |
||||||
partial('api/v1/statuses/show', object: status) |
|
||||||
end |
|
||||||
end |
end |
||||||
|
Loading…
Reference in new issue