Expose proposal/debate comments in the API so I can test :has_many associations
This commit is contained in:
@@ -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 ]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user