Se ho una funzione che restituisce questo:Documentare una funzione che rende un JSON con Yard?
render :json => @orders.as_json(include: [{:user => {only: :id}}], :only => [:id, :status_id])
sto documentando così:
# @return [JSON] includes the id, the order status id and the id of the associated user
Mi chiedo se c'è un modo migliore di documento, come il JSON restituita sarà simile .
Hai trovato un modo migliore? – josal