Need to disable caching again due to bug in Rabl

This commit is contained in:
Eugen Rochko
2016-11-03 13:59:31 +01:00
parent 0160d1d9b5
commit 562044f36a
5 changed files with 12 additions and 15 deletions

View File

@ -1,13 +1,10 @@
object false
object @context
cache false
node :ancestors do
@ancestors.map do |status|
partial('api/v1/statuses/show', object: status)
end
node :ancestors do |context|
partial 'api/v1/statuses/index', object: context.ancestors
end
node :descendants do
@descendants.map do |status|
partial('api/v1/statuses/show', object: status)
end
node :descendants do |context|
partial 'api/v1/statuses/index', object: context.descendants
end