Update API fields for Comment

This commit is contained in:
Alberto Miedes Garcés
2016-12-27 18:18:22 +01:00
parent 0e501e2edd
commit 90ff84b6ef
3 changed files with 49 additions and 1 deletions

View File

@@ -2,7 +2,7 @@ API_TYPE_DEFINITIONS = {
User => %I[ id username proposals ],
Debate => %I[ id title description created_at cached_votes_total cached_votes_up cached_votes_down comments_count hot_score confidence_score geozone_id geozone comments public_author ],
Proposal => %I[ id title description external_url cached_votes_up comments_count hot_score confidence_score created_at summary video_url geozone_id retired_at retired_reason retired_explanation geozone comments public_author ],
Comment => %I[ id body user_id user commentable_id ],
Comment => %I[ id commentable_id commentable_type body created_at cached_votes_total cached_votes_up cached_votes_down ancestry confidence_score public_author ],
Geozone => %I[ id name ]
}