Expose proposal/debate comments in the API so I can test :has_many associations

This commit is contained in:
Alberto Miedes Garcés
2016-11-18 16:24:41 +01:00
parent 4e2a003931
commit 700fcaab16

View File

@@ -1,7 +1,7 @@
API_TYPE_DEFINITIONS = {
User => %I[ id username proposals ],
Debate => %I[ id title description author_id author created_at ],
Proposal => %I[ id title description author_id author created_at ],
Debate => %I[ id title description author_id author created_at comments ],
Proposal => %I[ id title description author_id author created_at comments ],
Comment => %I[ id body user_id user commentable_id ]
}