From d45fe2391074fc4dafac34e30776f1cc607c4063 Mon Sep 17 00:00:00 2001 From: Osmond Oscar Date: Fri, 12 Feb 2016 23:07:31 +0100 Subject: [PATCH] Add question_id to answer returned --- app/serializers/answer_serializer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/serializers/answer_serializer.rb b/app/serializers/answer_serializer.rb index 80fddcb..b1b85a9 100644 --- a/app/serializers/answer_serializer.rb +++ b/app/serializers/answer_serializer.rb @@ -1,5 +1,5 @@ class AnswerSerializer < ActiveModel::Serializer - attributes :id, :user, :content, :votes_count, :created_at, :updated_at, :comments_count + attributes :id, :user, :content, :question_id, :votes_count, :created_at, :updated_at, :comments_count def user {