Need to disable caching again due to bug in Rabl
This commit is contained in:
@ -9,10 +9,9 @@ class Api::V1::StatusesController < ApiController
|
||||
end
|
||||
|
||||
def context
|
||||
@status = Status.find(params[:id])
|
||||
@ancestors = @status.ancestors
|
||||
@descendants = @status.descendants
|
||||
set_maps([@status] + @ancestors + @descendants)
|
||||
@status = Status.find(params[:id])
|
||||
@context = OpenStruct.new({ ancestors: @status.ancestors, descendants: @status.descendants })
|
||||
set_maps([@status] + @context[:ancestors] + @context[:descendants])
|
||||
end
|
||||
|
||||
def create
|
||||
|
Reference in New Issue
Block a user